I want to add conversion traking codes to thankyou page which is by default callback page. I reached to tpl-callback.php but as suggested needs to add the code in between head section while I can’t see any head tags there so where is the ideal location to drop FB and Adwords tracking code?
Yes It has to go into head section, I put it “anywhere” in the page but its not working.
Mark, I need to add the codes. Where is the head section?
your tpl_callback.php files call header.file once in the beginning of the file. Head section is in the header.php file. But header.php is called by every page.
So, you can do one thing, in callback.php , don’t call the header.php instead copy the header file code and include your conversion code in the <head> section.
header.php and locate <head></head> in
line 21-31 put your code there.
And copy the whole file content and paste it in
line 7 REPLACING
<?php get_header(); ?> part.
Well thanks Hemanta, your way might solve the problem but this is bit technical and one should not do it in the absence of the web developer. So I just installed plugins to ad facebook and adwords tracking code and that pretty simple and works fine.
In case anyone else encounters the same problem should install these two plugins.
Thanks you solved.
Thank you ASIM very much this was very helpfully for me!
You must be logged in to reply to this topic.