Jump to content

AddThis plugin no longer displaying on pages


vidmarc

Recommended Posts

Did your browsers recently get an update? Firefox or Chrome?

If so, "AddThis" may now be in the browser's "Do Not Allow" list of social trackers. Or the browser's settings may have enabled "Disallow third-party cookies" (might be possible to switch this to "Allow").

Link to comment
Share on other sites

I'm seeing a lot of these:

 

A cookie associated with a cross-site resource at https://accounts.google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

 

Link to comment
Share on other sites

A cookie associated with a cross-site resource at https://accounts.google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

I saw that looking at the Chrome Developer Tools comments on our site as well. Looks like something CC will need to fix before the next upgrade or maybe now??

1 hour ago, bsmither said:

This conversation at AddThis from many years ago may provide a clue:
https://addthis.desk.com/customer/portal/questions/2916419-addthis-not-working-on-firefox-or-chrome?b_id=16950

 

Yes, I had to change my Security Settings to allow Social Trackers to get AddThis working again. I thought I had that turned off with an exception for a few sites, like AddThis. I'll fiddle more tomorrow and see if I can find a Custom setting on FF that I like.

Link to comment
Share on other sites

Assuming the AddThis module is functioning correctly, CubeCart's code when displaying a product will assign the module's output to the template variable SHARE.

Edit the template content.product.php by adding at the very bottom of the file {debug}. When you request a product page, your browser will want to show a popup window. Let it. (You may need to re-request that page.)

In the popup, scroll to where SHARE should be listed and verify that there is some content for that variable.

If so, then in the template code, make sure it has {$SHARE} somewhere. It may be in an element template if that is how your skin is coded.

If all that seems to be working, then it is possible the browser (or add-on) has adopted the policy of actually modifying the received HTML, stripping out potentially unwanted content, then sending the edited content to the browser's page rendering system.

There has been some argument over this. A recent browser version has eliminated a popular code entry point (API call) that will allow the add-on to manipulate received code to do things like this -- thus breaking a lot of AdAware-type add-ons. Then some browsers will do this kind of manipulation anyway.

Link to comment
Share on other sites

I see:

share => "Share"
$SHARE
Origin: "Smarty object" 	
Value
Array (2)
0 => "<script src="//connect.facebook.net/en-GB/all.js#xfbml=1"></script><fb:like ..."
1 => null

I guess I could add the AddThis code directly to this same template?

ps: reply from AddThis:

 

Quote

Thank you for contacting AddThis support.

I am not sure the extension link provided is supported by us. I wll ask my team and let you know.

In the meantime, here’s a quick video tutorial on how to install AddThis code on an HTML website.

You can also find step-by-step instructions by logging into your AddThis Dashboard and clicking on the “Get The Code” section in the header. From there, you’ll be able to select instructions for installing code on an HTML site, as well as platforms such as Wordpress, Magento, Shopify, and more.

If you need further assistance, please visit the newly redesigned AddThis Academy or respond to this e-mail.

 

Link to comment
Share on other sites

I don't recognize the first one.

The second seems to show a link to a Facebook page, and perhaps the null is supposed to be the AddThis code.

The AddThis module will not return anything (thus, null) if CubeCart's session for this visitor has not accepted the use of cookies. So, if CubeCart thinks the visitor has not agreed to have third-party cookies in use, or has actively selected to block them, the AddThis module will not deliver any code for CubeCart to put in the SHARE template variable.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...