Tagged: AdWords, conversion, Google, remarketing, tag, Tracking
-
AuthorPosts
-
July 22, 2014 at 12:53 pm #294289
Hi,
I already found a topic with the solution, but it does not work. Google requires me to add the conversion tracking code for AdWords directly before the </head> section. Where I find the code:
url(‘http://krugerparksafari.com/wp-content/uploads/avia_fonts/fontello/fontello.svg#fontello’) format(‘svg’);
}#top .avia-font-fontello,body .avia-font-fontello,html body [data-av_iconfont=”fontello”]:before{font-family:’fontello’}</style>e.g.
[my tracking code]
</head>Please help,
Johan
July 23, 2014 at 2:25 am #294728Hey Johan!
Try adding this at the very end of your theme / child theme functions.php file:
add_action('wp_head','adwords_code_func'); function adwords_code_func() { ?> ADWORDS CODE <?php }
Cheers!
JosueJuly 23, 2014 at 9:48 am #294836Hi Josue,
Now the website doens’t work at all. I get the following error:
Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/outlouwd/public_html/krugerparksafari.com/wp-content/themes/enfold/css/dynamic-css.php on line 772Regards,
Johan
July 23, 2014 at 10:10 am #294841Hi Josue,
I added the code to functions-enfold.php and:
1. It seems to add the code to every page (which isn’t desirable): only to the thank you page after an inquiry took place.
2. The code isn’t directly before </head> (there is still other style sheet code) and
3. It creates a grey box above the menu.I have the per page head plugin installed and can add code to the head of any page, the biggest issue is though that our AdWords re-marketing code cannot fire if the code isn’t directly above the </head> tag.
July 23, 2014 at 7:11 pm #295082But were you able to check if the tracking is working? i don’t think there is a difference as long as the code is inside the <head></head> tag.
Regards,
JosueJuly 23, 2014 at 7:40 pm #295094This is what I did:
Installed a plugin called “Creative Clans Embed Script”
Then on the actual page I wanted the conversion tracking setup… eg the actual URL that the customer goes to….. you go to where you design the page and on the right hand side below where you click to publish you will see a box to add the script.
This worked for me and has been working with our adwords tracking for a number of months now.
July 23, 2014 at 7:41 pm #295096Oh and when you add the script to the box – put the script in “Scripts to be inserted at the bottom”.
July 23, 2014 at 9:09 pm #295111I often pop by just for tips and ideas I may pick up on. Saw the question and realised it was something I have dealt with myself.
July 24, 2014 at 5:19 am #295263That’s great, thanks for sharing your solution Jamie :)
July 24, 2014 at 9:29 am #295323It shows that it works now with tag manager, one has to add settings in tag manager and add that code for it to show that its working. It however still shows a suggested change, but I’ll let you know again if for some reason this isn’t working.
Thanks a lot!
-
AuthorPosts
- The topic ‘Google AdWords Conversion Tracking Setup’ is closed to new replies.