Variables for Google Tag Manager Script

  • Profile Image
    Concept3
    Asked on May 04, 2022 at 10:11 AM

    Good Morning,

    I'm reaching out to you for assistance with correctly configuring our client's Google Tag Manager form in order to track the form fills from their contact form. I am told that we need to update the variable parts of the script ("yourEmailVariable", "yourPhoneVariable" etc.) and that those variables are specific to Jotform so I could reach out to you to get those.

    For reference, here is the code

    <script> var enhanced_conversion_data = {  "email": yourEmailVariable,   "phone_number": yourPhoneVariable,  "first_name": yourFirstNameVariable,  "last_name": yourLastNameVariable,  "home_address": {   "street": yourStreetAddressVariable,   "city":yourCityVariable,   "region": yourRegionVariable,   "postal_code": yourPostalCodeVariable,   "country": yourCountryVariable  } };</script>
    <!-- Global site tag (gtag.js) - Google Ads: 1005346590 --><script async src="https://www.googletagmanager.com/gtag/js?id=AW-1005346590"></scrip><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config','AW-1005346590', {'allow_enhanced_conversions':true});</script>