Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #282554

    Hi There,

    I have a few contact forms in my website and i want to track the conversion from each form after the lead redirected into a specific “Thank You” page. i tried to read about your suggestions in this forum but didn’t find an accurate answer.
    i have putted this code at end of the functions.php with the specific page id + specific tracking code from Google.
    function custom_code(){
    if ( is_page( 9749 )) {
    ?>
    <!– Google Code for LXSuite LP Conversion Page –>
    <script type=”text/javascript”>
    /* <![CDATA[ */
    var google_conversion_id = 1004608795;
    var google_conversion_language = “en”;
    var google_conversion_format = “2”;
    var google_conversion_color = “ffffff”;
    var google_conversion_label = “sdwLCJXLzAoQm7qE3wM”;
    var google_conversion_value = 1.000000;
    var google_remarketing_only = false;
    /* ]]> */
    </script>
    <script type=”text/javascript” src=”//www.googleadservices.com/pagead/conversion.js”>
    </script>
    <noscript>
    <div style=”display:inline;”>

    </div>
    </noscript>

    <?php
    }
    }
    add_action(‘wp_footer’, ‘custom_code’);

    I can see that the code is in the page when i doing the inspect element in Chrome, But for some reason i cant see any conversions tracking in my Google Add-words account and they saying there that the code is “Unverified”. i tried to generate few forms, refresh the page but for no good. Ill appreciate your help here!

    Sincerely,

    Omer

    #282616

    Hi Omer!

    With the Enfold version 2.8 update you no longer need anything custom to work with conversion tracking. One of the features added was:

    
    added: contact form can now be redirected to a new page after send
            (useful for conversation tracking and custom messages)
    

    So update your theme if you aren’t already on 2.8.1 and then you can use the tracking code on the redirect page without anything special needed.

    Cheers!
    Devin

    #282924

    Hi Devin,

    I do have 2.8.1 version of the theme. I have created a few “thank you” pages ( one for each product). How can i put a specific tracking code to each page and not only in one general “thank you” page for all contact forms?

    Thanks,

    #283170

    Hi!

    Just select “What should happen once the form gets sent?” – “Redirect the user to another page”: https://www.clipular.com/c/5357368921554944.png?k=YCbbCR5YTBuA0KM7JT1y4FXY29w and enter the url of the page (Set manually) or select “Page” from the dropdown. Then insert the conversion tracking code with a “Code block” element on the “Thank you” page. You can set a different page for each contact form.

    Regards,
    Peter

    #283191

    Hi Dude,

    Thanks for your help. I didn’t understood where do i insert the tracking code in the “thank you” page? i can only choose to which page i want to contact form will directed to and that’s about it.

    Thanks,

    #283286

    Hey Omer!

    Try inserting the tracking code using the Code Block Element in the thank-you page:

    Regards,
    Josue

    #283496

    Got it. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Google AddWords Conversion Tracking Code doesn't work’ is closed to new replies.