This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Passing UTM Parameters


  1. synergeticweb
    Member

    I'm using Machform for contact forms within my wordpress site, and on landing pages outside of WordPress. The form is inserted using the embed javascript code. I'm also passing the data to a custom CRM using the notifications with it's API.

    We would like to also pass the utm_ parameters used with Google Adwords.

    I have reviewed the guide at http://www.appnitro.com/doc-url-parameters before writing this post. Here are my questions:

    Is it possible to grab the utm parameters that are passed to the page when it doesn't use the machform/view.php?id=8 format? When the pages are embedded into a WordPress page the url is different. For example, here is a url coming from adwords:

    http://www.google.com/aclk?sa=l&ai=CdQ9kZ6pLVa-tLZSJ-gOc4IK4DsLPxMYGiq-PvvYB4PXCyHsQBygHYMm29IbIo6AZoAHetIzKA8gBAaoEKE_QIuwOD-XUVz3AzwDWUHWgacP9wtMwEqQ0l1rcre5vCjwnvpt_CfK6BRMI_5yyh52wxQIVUS2ICh10YQD4ygUAgAeKy_M1kAcBqAemvhvYBwE&num=10&ei=Z6pLVb_NKdHaoAT0woHADw&sig=AOD64_0h9he1b_O1ilAANpjTSVyJ_QC27g&rct=j&q=&sqi=2&ved=0CKsBENEM&adurl=http://www1.company1.com/lp/Company1_Request_Demo.htm%3Futm_campaign%3Dall%26utm_medium%3Dppc%26utm_source%3Dadwords%26utm_content%3Dtext5

    Also, is it possible for the url parameters to be passed into hidden fields?

    Thanks,
    Jenny

    Posted 9 years ago #
  2. rocketmedia
    Member

    You can create hidden fields and use javascript/jquery to get the URL parameters and populate the hidden fields in the form.

    Posted 9 years ago #
  3. businessschool
    Member

    Hey synergeticwe the documentation you cited is NOT relevant to embedded forms that DON'T have the embed code. I was told by the AppNitro guys that I needed to update my embed code and edit the relevant line to include the following:

    data-formurl="http://domain/machform42/embed.php?id=45293&element_1=<?php echo $_GET['[param_1']; ?>"

    Unfortunately, this DIDN'T work for me on my Drupal site, it viewed the text after element_1 as text and filled the field with the entire text, you may get better mileage.

    Cheers

    Posted 9 years ago #

RSS feed for this topic

Reply