Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Adding Adwords Specific Snippet For event tracking on ONE SINGLE PAGE

$
0
0

Replies: 0

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: 971002048 –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=AW-971002048″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());

gtag(‘config’, ‘AW-971002048’);
</script>

2)
<!– Event snippet for Adding Email To List 7 Videos conversion page –>
<script>
gtag(‘event’, ‘conversion’, {‘send_to’: ‘AW-971002048/SWQOCPGKsoUBEMChgc8D’});
</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 51 minutes ago by paolostu.
  • This topic was modified 51 minutes ago by paolostu.

Viewing all articles
Browse latest Browse all 59525

Trending Articles