Adding Google Analytics javascript snippet to one page only
-
I’m managing a website for a client who also has a Google AdWords campaign going on, and I need to place a conversion tracking snippet on just one page on the site but don’t know how to do that within WordPress.
Basically when someone fills out a form on the site, when they hit “submit” the form is submitted and they are redirected to another page on the site that thanks them. I have a javascript snippet from the AdWords company that I have been advised to place in the head of the thank you page, but I can’t figure out how to do that without getting it on every page of the site, which is what I don’t want. I was told that I have to place the snippet before the
</head>tag, not in the body of the page, in order for it to track conversions correctly.Any help would be appreciated.
The topic ‘Adding Google Analytics javascript snippet to one page only’ is closed to new replies.