• I have spent about 3 hours researching a solution for this.

    Before you consider this question be aware tha there are two snippets that need to be added to enable Adwords events:

    1)

    
    <!-- Global site tag (gtag.js) - Google AdWords: XXXXXXXXX -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'AW-XXXXXXXXX');
    </script>
    

    2)

     
    <!-- Event snippet for Adding Email To List 7 Videos conversion page -->
    <script>
      gtag('event', 'conversion', {'send_to': 'AW-XXXXXXX/XXXXXXXXXXXXX'});
    </script>
    

    PLEASE DO NOT COMMENT OR INJECT TONS OF INFO ABOUT THE SNIPPET N 1 I have installed it CORRECTLY. I DO NOT NEED HELP WITH THAT, I HAVe FOUND many videos,plug ins, comments about that snippet and how to install it.

    MY SPECIFIC PROBLEM IS WITH 2

    The snippet 2 needs to go on the page for which we are measuring an event. Thus it goes only one the specific page or vent I am interested.
    My problem is I do not know how to insert this snippet on one specific page. I prefer not use plug ins and even if there are plug ins I am not very convinced about the ones I found so far it was not clear how to insert the snippet in one single page.

    I repeat I would like to know if I can copy and paste the code snippet directly into the text editor on the page of interest?

    PLEASE DO NOT:
    a) INJECT generic information/link that talks generally about adwords. my problem is specific
    b) PLEASE DO NOT INJECT new concept without defining them, e.g. I saw many posts on woocommerce, but I do not even know why I should consider this and how it comes into play.
    c) DO NOT OPEN A CANVASS SENDING ME 10 slightly related posts with no specific answer.

    The answer sought is of the type:
    DO this:
    Step1
    Step2
    Step3

    The final result should be;
    <<problem solved.>>

    • This topic was modified 6 years, 8 months ago by paolostu.
    • This topic was modified 6 years, 8 months ago by paolostu.
    • This topic was modified 6 years, 8 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello paolostu,

    did you paste the snippet in the text editor now?

    This should work when using the editor in text mode.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress where it belongs.

    My problem is I do not know how to insert this snippet on one specific page.

    Without getting into a lengthy conversation, is the code working on your site and how and where are you adding that code?

    I’m looking for the same answer as the OP. Where do you stick the event snippet for a particular page within WordPress? Specifically for me a landing page that loads when a customer hits a submit button.

    <!– Event snippet for Periscope Webinar Signup conversion page –>
    <script>
    gtag(‘event’, ‘conversion’, {‘send_to’: ‘AW-XXXXXXXX/XXXXXXXX’});
    </script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Adwords Specific Snippet For event tracking on ONE SINGLE PAGE’ is closed to new replies.