Google Remarketing

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
xplosi0n1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Mon Nov 30, 2009 10:54 am
Location: Dayton, OH
Contact:

Google Remarketing

Post by xplosi0n1 » Fri Feb 12, 2016 11:15 am

Hello All,

Any ideas on how to get this code on every page of the website, ideally right before the </body> tag?


<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = ***********;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1069551680/?value=0&guid=ON&script=0"/>
</div>
</noscript>
Thanks,
Mike

CheapBowlingBalls.com
3204 Woodman Drive
Kettering, OH 45420
937.559.1541
mikeh@cheapbowlingballs.com
www.cheapbowlingballs.com

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Google Remarketing

Post by Shopping Cart Admin » Fri Feb 12, 2016 12:58 pm

Hi Mike,

I put ours into the /conlib/StoreFooter.ascxpage, so it's included everywhere.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Remarketing

Post by AbleMods » Mon Feb 15, 2016 6:03 am

Also works well in the /layouts/base.master and /layouts/fixed/base.master files.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Google Remarketing

Post by kwikstand » Tue Feb 16, 2016 5:43 pm

What about the custom parameters?

Code: Select all

<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: '<%=ProductId%>',
ecomm_pagetype: 'product',
ecomm_totalvalue: '<%=Price%>',
};
</script>
To get full advantage of remarketing, you really need to use the full code, but when I do, my site breaks.
Contractor's Solutions
www. contractors-solutions.net

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Remarketing

Post by AbleMods » Wed Feb 17, 2016 3:49 am

The code you've shown (with custom parameters) will only work as long as those custom parameters are defined as public properties in the user control where you add that code. And then you need code in the code-behind file to populate those properties during page_load().

Keep in mind, google remarketing works with more than just the product page. So an accurate implementation of remarketing would require more than just populating product id and price on product pages.

I believe Web2Market sells a user control that handles the Google ReMarketing code injections for you for all the necessary pages. You might want to check with Judy @ Web2Market about implementing it on your website.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
xplosi0n1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Mon Nov 30, 2009 10:54 am
Location: Dayton, OH
Contact:

Re: Google Remarketing

Post by xplosi0n1 » Wed Feb 17, 2016 6:27 am

I stuck the code last week in the storefooter.ascx all the way at the bottom. I didn't do anything special with it but paste it in their cause I'm not a coder. Google Tag Assistant is showing that the code is on every page but it is telling me that: Code should be placed directly above the closing <body> tag. The information is not being transmitted to our AdWords account. We are getting this error from AdWords: We haven't detected the AdWords tag on your website or in your app.

Can you take a look at the code below and let me know If I need to alter it anyway?

Thanks for the help!


<%@ Control Language="C#" AutoEventWireup="True" CodeFile="StoreFooter.ascx.cs" Inherits="AbleCommerce.ConLib.StoreFooter" %>
<%--
<conlib>
<summary>Displays the standard store footer.</summary>
</conlib>
--%>
<%@ Register src="~/ConLib/GoogleAnalyticsWidget.ascx" tagname="GoogleAnalyticsWidget" tagprefix="uc" %>
<%@ Register src="~/ConLib/Custom/CategoryDisplayFooter.ascx" tagname="FootMenu" tagprefix="uc" %>
<%@ Register src="~/ConLib/Custom/BottomFoot.ascx" tagname="BottomFoot" tagprefix="uc" %>
<div id="storeFooter">
<div id="footerTop">
<div class="content">
<div id="footermenu">
<uc:FootMenu ID="FootMenu" runat="server" />
</div>
</div>
</div>
<%-- <div id="footerMiddle">
<div class="content">
<div class="shortcuts">
<%-- <asp:HyperLink ID="AdminLink" runat="server" NavigateUrl="~/Admin/Default.aspx" CssClass="admin" Text="Admin" />
<asp:HyperLink ID="BasketLink" runat="server" NavigateUrl="~/Basket.aspx" class="basket" Text="Cart" />
<asp:HyperLink ID="WishlistLink" runat="server" NavigateUrl="~/Members/MyWishlist.aspx" class="wishlist" Text="Wishlist" />
<asp:HyperLink ID="AccountLink" runat="server" NavigateUrl="~/Members/MyAccount.aspx" class="acct" Text="Account" />
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
<asp:HyperLink ID="LoginLink" runat="server" NavigateUrl="~/Login.aspx" class="login" Text="Login" />
</AnonymousTemplate>
<LoggedInTemplate>
<asp:HyperLink ID="LogoutLink" runat="server" NavigateUrl="~/Logout.aspx" class="login" Text="Logout" />
</LoggedInTemplate>
</asp:LoginView>
</div>
</div>
</div>--%>
<div id="footerBottom">
<div class="content">
<uc:BottomFoot ID="bfoot" runat="server" />
<uc:GoogleAnalyticsWidget ID="GoogleAnalyticsWidget1" runat="server" />
</div>
</div>
<asp:Panel ID="MobileLinkPanel" runat="server" Visible="false" CssClass="mobileLinkPanel">
<asp:HyperLink ID="MobileStoreLink" runat="server" NavigateUrl="#" Text="Go to Mobile Store" />
</asp:Panel>
<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = *********;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1069551680/?value=0&guid=ON&script=0"/>
</div>
</noscript>
</div>
Thanks,
Mike

CheapBowlingBalls.com
3204 Woodman Drive
Kettering, OH 45420
937.559.1541
mikeh@cheapbowlingballs.com
www.cheapbowlingballs.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Remarketing

Post by AbleMods » Wed Feb 17, 2016 9:09 am

AdWords code is different than the remarketing code, isn't it??
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
xplosi0n1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Mon Nov 30, 2009 10:54 am
Location: Dayton, OH
Contact:

Re: Google Remarketing

Post by xplosi0n1 » Wed Feb 24, 2016 11:00 am

Can anyone help me to tell if im doing something wrong with this code?

I stuck the code last week in the storefooter.ascx all the way at the bottom. I didn't do anything special with it but paste it in their cause I'm not a coder. Google Tag Assistant is showing that the code is on every page but it is telling me that: Code should be placed directly above the closing <body> tag. The information is not being transmitted to our AdWords account. We are getting this error from AdWords: We haven't detected the AdWords tag on your website or in your app.

Can you take a look at the code below and let me know If I need to alter it anyway?

Thanks for the help!


<%@ Control Language="C#" AutoEventWireup="True" CodeFile="StoreFooter.ascx.cs" Inherits="AbleCommerce.ConLib.StoreFooter" %>
<%--
<conlib>
<summary>Displays the standard store footer.</summary>
</conlib>
--%>
<%@ Register src="~/ConLib/GoogleAnalyticsWidget.ascx" tagname="GoogleAnalyticsWidget" tagprefix="uc" %>
<%@ Register src="~/ConLib/Custom/CategoryDisplayFooter.ascx" tagname="FootMenu" tagprefix="uc" %>
<%@ Register src="~/ConLib/Custom/BottomFoot.ascx" tagname="BottomFoot" tagprefix="uc" %>
<div id="storeFooter">
<div id="footerTop">
<div class="content">
<div id="footermenu">
<uc:FootMenu ID="FootMenu" runat="server" />
</div>
</div>
</div>
<%-- <div id="footerMiddle">
<div class="content">
<div class="shortcuts">
<%-- <asp:HyperLink ID="AdminLink" runat="server" NavigateUrl="~/Admin/Default.aspx" CssClass="admin" Text="Admin" />
<asp:HyperLink ID="BasketLink" runat="server" NavigateUrl="~/Basket.aspx" class="basket" Text="Cart" />
<asp:HyperLink ID="WishlistLink" runat="server" NavigateUrl="~/Members/MyWishlist.aspx" class="wishlist" Text="Wishlist" />
<asp:HyperLink ID="AccountLink" runat="server" NavigateUrl="~/Members/MyAccount.aspx" class="acct" Text="Account" />
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
<asp:HyperLink ID="LoginLink" runat="server" NavigateUrl="~/Login.aspx" class="login" Text="Login" />
</AnonymousTemplate>
<LoggedInTemplate>
<asp:HyperLink ID="LogoutLink" runat="server" NavigateUrl="~/Logout.aspx" class="login" Text="Logout" />
</LoggedInTemplate>
</asp:LoginView>
</div>
</div>
</div>--%>
<div id="footerBottom">
<div class="content">
<uc:BottomFoot ID="bfoot" runat="server" />
<uc:GoogleAnalyticsWidget ID="GoogleAnalyticsWidget1" runat="server" />
</div>
</div>
<asp:Panel ID="MobileLinkPanel" runat="server" Visible="false" CssClass="mobileLinkPanel">
<asp:HyperLink ID="MobileStoreLink" runat="server" NavigateUrl="#" Text="Go to Mobile Store" />
</asp:Panel>
<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = *********;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1069551680/?value=0&guid=ON&script=0"/>
</div>
</noscript>
</div>
Thanks,
Mike

CheapBowlingBalls.com
3204 Woodman Drive
Kettering, OH 45420
937.559.1541
mikeh@cheapbowlingballs.com
www.cheapbowlingballs.com

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Google Remarketing

Post by kwikstand » Mon Aug 15, 2016 2:16 pm

Did you ever get it working? If so, does it work for Dynamic Ads?

I checked out Web2Markets plug in and it doesn't do dynamic ads. I don't hat the point of it is then.
Contractor's Solutions
www. contractors-solutions.net

Post Reply