Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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&#8217;) 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

    #294728

    Hey 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!
    Josue

    #294836

    Hi 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 772

    Regards,

    Johan

    #294841

    Hi 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.

    #295082

    But 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,
    Josue

    #295094

    This 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.

    #295096

    Oh and when you add the script to the box – put the script in “Scripts to be inserted at the bottom”.

    #295111

    I 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.

    #295263

    That’s great, thanks for sharing your solution Jamie :)

    #295323

    It 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!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Google AdWords Conversion Tracking Setup’ is closed to new replies.