Google Ads Conversion Action

Merchant
Từ United Kingdom
Thành viên kể từ thg 3 2021

Hi
I need help from someone as I'm pulling my hair out for what must be a simple answer.

Google Ads needs me to put some tracking data on a sales conversion page, e.g. a "Thank you for your order " page, which doesn't exist in LiteCart.

Google refuses to accept my ads until I do this.

Anyone got any ideas? Bearing in mind I am no programmer, or is there an add on I can use , not with ease !

Regards all

Merchant
Từ United Kingdom
Thành viên kể từ thg 3 2021

Hi
The same problems will occur however, that a code needs to be placed on a "thank you" page or similar.
I can use Google Tag Manager to obtain the same completed sales action, but again, this needs to be activated on a page after a sale has been created.

So, my question is, which page is created, shown, activated, after a sale ? and is this a page where i can simple add a short bit of code as a <head> /<head>

tim
Founder
Từ Sweden
Thành viên kể từ thg 5 2013
tim

It's pages/order_success. There are some elements that are tagged with data that JS can fetch.

    if (window.location.pathname.match(/\/order_success$/)) {
      var order = $('#box-order-success');
      $(order).find('.item').each(function(){
        gtag('event', 'purchase', {
          'transaction_id': $(order).data('id'),
          'value': $(order).data('payment-due'),
          'currency': $(order).data('currency-code'),
          'tax': $(order).data('total-tax')
        });
      });
    }
Merchant
Từ United Kingdom
Thành viên kể từ thg 3 2021

Hi
Thanks for your reply.
I have no idea what your on about, as my brain was not born to do code, it was born to do much more exciting things available to humans !
So I have started from scratch and wonder if you could go with me on this ?

First we need to setup Google Tag Manager from scratch, and Google asks for me to install 2 bits of code.
1) Paste this code as high in the <head> of the page as possible:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXXX');</script>
<!-- End Google Tag Manager -->
  1. Paste this code immediately after the opening <body> tag:

    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->

    I have added this to the template file ...
    includes/templates/default.catalog/layouts/default.inc.php

    Google reports (Via Google Tag Manager) that this works, so my next question is by me adding the above code to file default.inc.php will this be displayed on every page I have, or are there any pages that google will miss ? And will google be able to detect that a page displayed for say yellow duck is different from page red duck by me only installing it on the default template page ?

    Please be gentle with me on your reply.
    Regards

tim
Founder
Từ Sweden
Thành viên kể từ thg 5 2013
tim

It will be displayed on every page if you put it in the default layout. Except checkout which is another layout. But order success will have the default layout.

When you add this code Google gets access to the entire web browser JS environment. By loading the script they know your ip address, the JS environment gives them your device fingerprint, so you can be mapped to what other sites you browsed that had Google Tags. They know what elements you place your mouse pointer on, what button you click on, and what details you put in the forms, either by JS keystroke events or DOM data. They can inject other javascripts onto your page, especially the ones you assign through tag manager. So if you have any clients in the EU you will need a privacy consent for this.

That was a bit overkill, but I see a lot of clients not really knowing what they are actually adding with a simple tiny block of script.

Oh, and I would skip 2. and put 1 in the bottom. They just want front row up top.

I have no idea what your on about, as my brain was not born to do code, it was born to do much more exciting things available to humans !

I did not appreciate that, at all.

Merchant
Từ United Kingdom
Thành viên kể từ thg 3 2021

Hi
Thanks for your reply, so how do you limit what google can see, as this is their default tracking data for Google Analytics, and the minimum that google wants for Google Ads, (Not yet installed the google order confirmation code)

tim
Founder
Từ Sweden
Thành viên kể từ thg 5 2013
tim

There are two answers to this question.

  1. You can't limit. Because you are linking a remote source they get to return any script they like. Hypothetically if you knew the current returned code was totally fine you could host it on your end instead. That gives you control, but next week it might need a new version.

  2. Google Tag has a few fields where you state what privacy consents you have and not. This turns features on or off and gives the false impression they are unable to do things. The right wording would be what they have allowance to do. Moral is what prevents lines from being crossed. not keys and locks.

Merchant
Từ United Kingdom
Thành viên kể từ thg 3 2021

Hi
So let me ask a question the other way.
You have created a great shopping cart website using Litecart. The aim is to sell tons of product, but you need to advertise the website.
No website will advertise itself and make you millions. You need to advertise.

Google is the largest place to advertise your site, you have to pay Google money to do this, and Google can do what they want in order for you to agree to advertise your website. They can rape your site of info, because they are the largest, so they can wave the big stick.

Where else are you going to promote your site and make money ?

This is a very important question for every user of every online e-commerce site

tim
Founder
Từ Sweden
Thành viên kể từ thg 5 2013
tim

Very well described. And a good question.

Regardless of Google or not I think the privacy issue is going to be the same. Any affiliate partner these days would want you to install a javascript. Why? They will tell you they wanna see if their traffic converts. But a script is gonna load for everyone on all pages, not just affiliate traffic.

I think what we can do is limit the leak of data.

  • Host the scripts locally to prevent non consented ip adress leaks and knowing what is served.
  • Only load the scripts for relevant traffic. Like the ones coming with a marketing measure tag like utm_*.
  • Turn to server side reporting.
  • Report periodic summaries of affiliate sales rather than details of every purchase.

You will be told analytics is a key part in this. But analytics can be moved home where you own the data and not your marketing strategists.

Keep in mind that the data your marketing provider collects about your clients can be used to promote competitors as well.

These are long term strategy ideas. For short term just gather thoughts and a good understanding what is needed for complying to the privacy regulations.

Bạn
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.