Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1362921

    Hi

    For Google Enhanced Conversion Tracking, we need to include a script with the sender’s email address on the contact form thank you page. Is there any way to forward the data from the form to the thank you page to read it and insert it into the script?

    We have received the following script from Google. Can this be used together with the Enfold contact form?

    <script>
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
    ‘event’: ‘form_complete’,
    ‘enhanced_conversion_data’: {
    “email”: „ (Email address hidden if logged out)
    }
    });
    </script>

    Thx for your support.
    Regard, Mike

    #1363119

    Hey mediaformers,

    Thank you for the inquiry.

    You can save the email or any data in a cookie or in the browsers’ local storage, after the form has been submitted. You can then retrieve that data on page load and apply it to the script.

    // https://www.w3schools.com/jsref/prop_win_localstorage.asp
    // https://www.w3schools.com/js/js_cookies.asp

    Best regards,
    Ismael

    #1363180

    Hi Ismael

    Thank you for your reply and the suggested solution.

    Sorry, I didn’t mention that we need a solution also for users who refuse cookies. As I’m sure you know, for Google Enhanced Conversion Tracking this is important. So it needs a server side integration. Is this even possible with the Enfold Contact form? We have found an alternative solution with Contact Form 7:

    https://www.linkedin.com/pulse/google-ads-enhanced-conversions-tracking-contact-form-ryan-parkes?trk=articles_directory

    Thanks for your support.

    #1363245

    Hi,

    Thanks for the update. What you are asking is not available in the theme by default unfortunately. If you have found a solution with Contact Form 7, then I would recommend that you use that solution for now.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.