Google Remarketing Set Up

General ShopSite user discussion
Post Reply
hammer
Posts: 127
Joined: Thu Mar 17, 2011 8:22 am

Google Remarketing Set Up

Post by hammer »

Google is providing dynamic remarketing of products to web site visitors, shoppers, and customers. The goal is to display ads on third party web sites to people who were shopping your products. To do this, you need to put a snippet of Google Code just before the </body> tag on every product page. I am trying to determine the best way to accomplish this. Does Shopsite have a recommended methodology?

Google says,

"To ensure that all the webpages on your site include the dynamic remarketing tag, you should insert the remarketing tag in one place, where it would automatically update all the webpages on your site. Typically you would do this within your webpage template."

Any advice would be appreciated.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Google Remarketing Set Up

Post by Jim »

Do as Google suggests and add it to your ShopSite page template. Also add it to the more info pages section of the product template so that it will be included on the moreinfo pages.
hammer
Posts: 127
Joined: Thu Mar 17, 2011 8:22 am

Re: Google Remarketing Set Up

Post by hammer »

Jim,

Thanks for the reply. Good suggestion about adding it to the product template so it will appear on more info page. I also added the Google code to the Cart template and the page template.
hammer
Posts: 127
Joined: Thu Mar 17, 2011 8:22 am

Re: Google Remarketing Set Up

Post by hammer »

Hello Jim,

I found the product page template, but it is not clear where I should the Google Tag for remarketing.

This is the only reference to the more info product page in the template:

#############################################
[-- DEFINE MORE_INFO_PAGE --]
[-- VAR.MoreInfo "yes" --]
[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]
[-- VAR.MoreInfo "" --]
[-- END_DEFINE MORE_INFO_PAGE --]


Perhaps you can tell me where theGoogle tag should go, or if the above code is referencing a different template I should use for where the code should go.

Thanks.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Google Remarketing Set Up

Post by Jim »

That template makes a choice of which moreinfo page to include with these lines.

Code: Select all

-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]
So you will need to find out if there is a [-- VAR.MoreInfoTemplate ... -] defined for that theme or if the Classic-MoreInfoPage template is used. Then you will need to find out which files it includes that contains the closing </body> tag. Then you will need to edit that file and add your code.

Probably the easies way to find out is to go to Utilities > Publish and enable the checkbox "Insert an html comment before each include file" . Then publish your store and view the html source of the Moreinfo page and it should contain an html comment before and after any place where a file is included. So find the closing </body> tag and look for an html comment near it that says what include file is being used.
Post Reply