HandL UTM Grabber / Tracker: Integrations
HandL UTM Grabber / Tracker is a unique WordPress plugin for storing, tracking and using UTM variables on any pages, posts and custom posts with ease. Unique shortcodes feature of each individual UTMs allows you to pass the information specifically to your email marketing tools (CRM).
HandL UTM Grabber integrates with ANY email forms and email marketing tool. I will just give some examples on this page about how you can get the most benefit from the plugin by integrating the email marketing tool of your choice. Feel free to comment under this post, if you could not find the tool you work with and want me to publish tutorial about it.
WARNING: Tutorials below assumes you are having the latest version of the plugin. Please download the latest from here before you start.
Contact Form 7
According to feedback I’ve received, CF7 is the most integrated tool with HandL UTM Grabber. Follow this simple step to integrate in seconds.
First we are adding the shortcodes in your form.
[utm_campaign_i]&amp;lt;input type="hidden" name="utm_campaign" value="%s" /&amp;gt;[/utm_campaign_i] [utm_source_i]&amp;lt;input type="hidden" name="utm_source" value="%s" /&amp;gt;[/utm_source_i] [utm_medium_i]&amp;lt;input type="hidden" name="utm_medium" value="%s" /&amp;gt;[/utm_medium_i] [utm_term_i]&amp;lt;input type="hidden" name="utm_term" value="%s" /&amp;gt;[/utm_term_i] [utm_content_i]&amp;lt;input type="hidden" name="utm_content" value="%s" /&amp;gt;[/utm_content_i] [gclid_i]&amp;lt;input type="hidden" name="gclid" value="%s" /&amp;gt;[/gclid_i]
And then, to include the new inputs in the emailCampaign Name: [utm_campaign] Campaign Source: [utm_source] Campaign Medium: [utm_medium] Campaign Term: [utm_term] Campaign Content: [utm_content] Gclid: [gclid]
First add your hidden element on your form, give any name for your label. Click “Advanced” tab and check “Allow field to be populated dynamically” and use the shortcode in “Parameter Name”
WordPress-to-lead for Salesforce CRM
Add your field in sales force plugin and check “Enabled”, select field type as “Hidden” and use the shortcode in “Value”
Add your hidden field into your form. And expand “Advanced Settings” and put “utm_campaign” or other shortcodes (without wrapping it in bracket) in Custom CSS Classes and hit “Save”.
Using Embed Code
If you are using embed code directly in your WordPress post, you need to modify the fields accordingly.
Here is an example for you:&amp;lt;div class="_form_element _field12 _full_width "&amp;gt;&amp;lt;input name="field" type="hidden" class="utm_source" /&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div class="_form_element _field13 _full_width "&amp;gt;&amp;lt;input name="field" type="hidden" class="utm_medium" /&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div class="_form_element _field14 _full_width "&amp;gt;&amp;lt;input name="field" type="hidden" class="utm_campaign" /&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div class="_form_element _field15 _full_width "&amp;gt;&amp;lt;input name="field" type="hidden" class="utm_term" /&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div class="_form_element _field16 _full_width "&amp;gt;&amp;lt;input name="field" type="hidden" class="utm_content" /&amp;gt;&amp;lt;/div&amp;gt;
[…] 2. Submit UTM variables into your favorite email marketing tools (Lead Tracking) Very detailed information and integration tutorials with major marketing tools (ActiveCampaign, Vero, Aweber) and other WP plugins (Contact Form 7, Gravity Forms, WordPress-to-lead for Salesforce CRM, Ninja Forms) can be found here […]
Thats amazing. Really glad to know that I dont have to use google tag manager to do so.
However, may i know if it can be integrated with CF7 Google Sheet Connector? I need all the information to be tabulated in Google Sheets. I can pull all “[name]” information but not [utm_source], [utm_medium] etc..
Hi SJ Tan, I tested the plugin the seems like the problem is related with the variables having underscore. For some reason, Google Sheets does not fill the fields named having underscore “_” in field name. In order to get around this problem try to define your fields without underscore, an example would be:
Hope it helps, let us know…
Hmm.. it doesnt work as well..
It works for me, see the video https://screencast-o-matic.com/watch/cFn6etoGh9. If you still can’t figure out, you should join our Slack channel.
silly me, managed to resolve it… you have no idea you helped me! Thanks so much!
5 stars rated!
Hi — I have this working on Gravity Forms, but can’t get it to work on JotForms.
On this page: https://www.v9digital.com/lets-talk/?utm_campaign=google I am trying to pass the variable through the js link, but the Short Code doesn’t do anything. H
However, the ShortCode doesn’t seem to do anything if I just try to print it out on the WordPress page either.
Do you have any workaround for Jot specifically or how I might go about getting the variables to print out.
Jotforms are not supported in V2. However it is supported in V3. After you upgrade you can use the iframe version of the form and make a similar implementation as shown here https://handldigital.com/utm-grabber/documentation/public/books/101-getting-started-for-handl-utm-grabber-v3/page/appending-utms-to-the-iframe-src
Can you DM me via Slack https://www.haktansuren.com/slack-handlwp/ ?
I am looking for how to pass the parameters to an ActiveCampaign form. Can you please help?
Can you give us more info how yo use ActiveCampaign? Is it the embed code you are using or ActiveCampaign’s WP plugin? The implementation will change depending on the method.
See this section if you are using embed code: http://www.haktansuren.com/handl-utm-grabber-integrations/#activecampaign
I have recently responded to a similar question here as well: https://wordpress.org/support/topic/using-handl-with-activecampaign/#post-7689669
I’m having a problem getting the code to work, I’ve added the code as covered above in contact form 7 but the utm fields are just blank hee is an example of the form along with a utm to test it https://www.attentiontodetailmoving.com/services/free-estimate/?utm_source=Testing&utm_medium=email&utm_campaign=10off&utm_term=relocate please let me know how any suggestions it.
Do you use and caching plugin or any plugin meant to optimize your site (e.g. minifying etc.)?
Yes, I use W3 total cache just for caching and minify via cloudflare.
Is there any way for you to disable and try it again? Previously it was reported that WP rocket was also causing the similar problem. Seems like other parameters are populating in the cookie just fine (e.g. IP), it is the UTM only problem…Let us know…
Thank you, I’ll let you know if it works.
Yes, I use W3 total cache just for caching and minify via cloudflare.
Can I also add “gclid” or any of the other sources to the salesforce plugin or is limited just to “utm_source”?
Yes absolutely, you can use any shortcodes available same way.
Cool, but limited to one field – so you are not able to track all the fields? It looks like there is only one default mapping to the user defined lead field “source__c”.
I would imagine something like
utm_source__c — enabled — hidden — utm_source
gclid__c — enabled – hidden – gclid
utm_content__c – enabled — hidden — utm_content
Would that be possible?
You can create custom fields in salesforce http://salesforce.vidyard.com/watch/um8ZtKv_2awfCTitmz0vtA and then add them in your form using the salesforce plugin in WP.
I added the above mentioned user defined fields like “utm_source__c and mapped that in the wordpress salesforce.com plugin as described in your example and listed in my previous posing.
Unfortunately without success – all I received was the value name. Example: salesforce.com gclid hat an enty “gclid”, utm_source had an entry “utm_source”
Can you join the slack channel? https://www.haktansuren.com/slack-handlwp
I am not able to make your plugin work with Active Campaign. I am putting this code that you have mentioned above but when Lead is Registered I am not able to see any extra information apart from Name and Email. Am I missing something?
Can you join out slack channel and share your URL and implementation method more with me via https://www.haktansuren.com/slack-handlwp/. See you there. Thanks!
Thanks. I have just sent you a personal message on Slack
in Ninja Form
Custom CSS Classes
Do you know writer this right or wrong ?
If Wrong, how to fix ? tks
Hi kinh, I am not sure if I understand your question correctly. If you are using those CSS classes, the fields will be auto-filled with the right UTM parameters. Let me know if this answers your question though.
In Ninja Form Custom CSS Classes
I feel very difficulty when i wrote it
I write so right (1) or (2)
How will you writer the form?
Neither of them correct.
You should create separate fields for each UTM parameters and then use single class name. For example if you created a field for UTM campaign, class name should be utm_campaign.
I’m using the latest version of ninja forms plugin for wordpress(3.1.6). After creating the hidden fields for utm parameters,I expanded the field settings and not able to find the Advanced Settings/Custom CSS Classes option under each hidden field. There are only Label section and Administration section with Field Key and Admin Label. Is there an add-on I need to use or I need a different version of ninja forms? If the Advanced Settings is somewhere else could you let me know where or send a screenshot. Thanks for your help!
You do not need any add-on. This is what I see on my end (tested with the latest version as well)
Let me know,
Thank you for your response. It looks like the current instruction is for Ninja Forms version 2.9x. In version 3.1.6, the field options are completely different (see http://imgur.com/a/I0Iww). Could you let me know if there is a work around for this or if you could update the HandL UTM plugin for ninja forms version 3.x. Thank you so much!
Can you reach me via https://www.haktansuren.com/slack-handlwp? Thanks!
I’m testing this using Ninja Forms 3.4.16 and the options for the hidden fields are different.
Do you have any updates in the documentation or workarounds?
Did you try this https://www.haktansuren.com/handl-utm-grabber-integrations/#comment-3151?
Hi! I love your work, thank you!
Can you help me integrate it with Caldera Forms?
Creating a hidden field with the value [utm_campaign] does not work…
Thanks so much!
Please join our slack channel here https://www.haktansuren.com/slack-handlwp in order for me to better assist you. Thanks!
I’ve dropped this into my platform and it’s capturing the obvious things like gclid landing page, ip etc but none of the utm information sich as capmain, keyword etc.. Do you know where I can look to open this up into WordPress?
It seems like a server related issue? Is it possible for you to test this on another server?
Can you provide the link that you are having the problem with here https://www.haktansuren.com/slack-handlwp.
I have error with plugins
PHP message: PHP Warning: Missing argument 4 for handl_utm_nav_menu_link_attributes() in public_html/home/wp-content/plugins/handl-utm-grabber/handl-utm-grabber.php on line 171
Can you guide me fix that?
Can you try updating the plugin to the latest 2.5.9 and let us know if it fixes the problem? Thanks!
After upgrade to latest version, all work fine. Thanks for your support 🙂
After visit if click to link format _https://domain.com/#/abc/ ,
utm capture is _https://domain.com/?utm=xxx#/abc/
and other question, how can i capture utm only some link on page (not all link)
P/s: Sorry for my bad English
Append UTM all is still on Beta. Thanks for reporting this issue. I will make sure to fix this on next release.
If you want to capture UTMs from only selected links, I advise you not to use “Append All” feature. You’ll have to build your URL with the shortcodes.
Hope it helps!
I’ve mentioned this on the Slack channel, but a Mautic Form solution would be great please!
I’ll get back to you via Slack, thanks Nick!
@Haktan, is there any update about how this may/does work with Mautic? I am looking to do the same thing.
Would you mind joining the slack channel and DM me about your implementation? https://www.haktansuren.com/slack-handlwp/ Thanks
I have had no response on Slack. Any ideas? I am using this with Thrive Leads
I’am sorry about the delay. I’ll try to bet back to you by Monday.
Hi Nick, please check your DM on slack!
I have the same isue like imedia
there is any news for new version of ninjaform?
Can you try creating HTML field and put the following
Make sure you switch to code mode. Please see attached screenshot.
After adding the html field, how you refer to it during form submission?
Well, it depends, which form plugin are you using? Contact Form 7?
hello, thanks for the plugin, I was wondering if there’s any way I can take the captured GCLID and create a QR code with it so that I can send the QR code as a response to the filled form. With that the client can come in store and I can easily scan it and import it as a conversion in adwords. Thank you!
Hi @LDL, please DM me via our Slack channel, so we can talk more in detail. Thanks!
i’m using gravity forms on my site and have added hidden fields with the UTM variables in them. When i submit though, the variable details do not show up in my entries. Can you please help here?
After testing the URL, I confirmed, `utm_campaign` field was not created in the COOKIE. This problem might be related with the caching, are you using any caching plugin that removes the arguments in the URL? or do you use WP Engine? Please also consider to join our slack channel for better/easier support.
Hi, same issue. Is there a WP Engine work around? Thanks so much.
Yes, please DM via Slack https://www.haktansuren.com/slack-handlwp/ and I get you information about this.
Can handl_original_ref and handl_landing_page be captured as well by using the shortcode in Contact Form 7? I tried it and other fields like gclid, utm_source, etc. gets captured but not the landing page and original ref. Thank you.
Yes you should be able to use those shortcodes as well. Can you join our Slack channel, I can help quicker/easier there.
[…] on your Contact Form 7 plugin in WordPress? You are at the right place… If not, please check Handl UTM Grabber Integrations/ page for other plugin (e.g. Gravity Form, Ninja Form and more) […]
Hi, Thanks for the plugin!
I have implemented your plugin on this site https://www.alwaysbestcare.com/franchising/ to capture our PPC campaign lead data. The site uses WordPress and ContactForm7.
The problem is that it’s not pulling the UTM data into the emails.
Here is what I have in the form…
[text* fname placeholder “First Name”]
[text* lname placeholder “Last Name”]
[email* email placeholder “Email Address”]
[tel* phone placeholder “Telephone Number”]
[text* zip placeholder “Desired Zip Code”]
[recaptcha id:cont-captcha class:cont-form-capt]
[submit class:btn “SUBMIT”]
Here is what I have in the “Mail Message Body”…
First Name: [fname]
Last Name: [lname]
Campaign Source: [utm_source]
Campaign Medium: [utm_medium]
Am I missing something here? Any help you can provide would be appreciated.
Hi Scott, please check the slack channel for my answer.
Anyone have try it with wpforms?
You can use the “CSS Classes” feature under “Advanced Feature” as it is explained here 3. HASSLE FREE IMPLEMENTATION (NO SHORTCODE).
thank you very much for your work!
I’ve been trying but without success to pass the lead source in WPFORM…
I filled the class field like on your screen shot but the field is then empty after the submission>>> https://bigrep.com/wp-content/uploads/2019/01/source1.jpg
Is there anything to add in the field value itself >> https://bigrep.com/wp-content/uploads/2019/01/source2.jpg
If I embed on the page the short code I can see the source (and I see it too in google analytics live).
Am I missing something?
Thank you very much in advance for your help!
I have installed this plugin on our website, integrated with JotForm, and the result was no less than amazing!
This is the Credit Card popup that we are using.
Any ideas on how to solve it?
I think I know what’s going on… Can you DM me via https://www.haktansuren.com/slack-handlwp, I can get you the custom version of HandL UTM Grabber.
Did you org my message or can you send me the link to my email ?
[…] to pass UTM parameters to ActiveCampaign. Although there is no straightforward answer and may have several different ways to do it. Here, I’ll give a step-by-step tutorial about the vanilla way – using the […]
Hi.. after a day of work and success this morning plugin has gone wrong.
You mention on a previous comment that Rocket Loader has caused issues in the page. (It’s the caching plugin that comes with CloudFlare).
I turned rocket loader back on last night after getting a working setup (I normally turn Rocket Loader off when working on the site). Then this morning I noticed the UMT script no longer works.
Despite turning it off, and refreshing WP caches everywhere, turning other plugins on and off and even loading a full site backup from yesterday your script is no longer grabbing the UMT data.
I’m not sure what else would have caused the issue.
It could be human error by me, but I’m a bit stuck.
Tricky if that is the case as Rocket Loader really improves our loading speeds a lot.
Has anyone else had issues in the past 24 hours?
I’ve included a link to a test page in the website field below when sending this comment.
It seems like UTM variables do not get recorded in COOKIE. I’ve seen people having similar problem before. Please ping me via https://www.haktansuren.com/slack-handlwp/ so we can talk about some custom solutions.
Thanks for making this plugin, it looks amazing! Do you know if anyone has successfully integrated it with Divi’s opt in forms? I’m very new to this, but am trying to capture UTM data then send it to mailchimp, via Divi’s inbuilt optin form. I’m struggling to know what to do so any help you can give me would be massively appreciated!
Hi – when someone registers their details via the website for http://www.tempusestate.com.au/register/ we need this then populated into salesforce. After installing and updating code, there still seems to be no tracking of UTM codes on Salesforce.
Please see screenshots of code applied to form:
Hi my UTM codes aren’t being tracked and firing in Salesforce but UTM codes come through from contact form 7 mail
is the plugin installed on the page? I do not think i see it.
Is there a way to test to make sure that this is working properly?
Not sure if i understand your question. But plugin is extensively tested on different forms/platforms and proved to be working great.
We have installed the plugin and are using it on a link on our site. It is working as expected, but only when the user is logged in wp as an admin. Is there something we can modify so any visitor to the site can be tracked?
Can you send me the link so I can test what’s going on?
I am wondering which is the best way to have these params in the WP plugin Bookly.
Do you have any example?
Many thanks in advance,
Never tested in Bookly. If you can send me the plugin. I can test and let you know. You can DM me via Slack https://haktansuren.com/slack-handlwp/
Hi, i want to connect UTM hand to Hubspot, I have created the fields so that they have where to keep (in hubspot), but I am not sure how to send them from contact form7
Thanks for this very useful plugin. I am using this for the last 1 month with contact form 7. The only problem that I am facing is that I am unable to set default UTM parameters values.
My tracking url is http://www.xyz.com?utm_source=google_campaign
As soon as person submit the form using the above tractable URL, we can see UTM Source was – google campaign.
This is what I want to achieve in Case 2
My tracking url is http://www.xyz.com
As soon as person submit the form using the above without tractable URL, we can see UTM Source in the form – google campaign (default value).
So, basically is there a way to configure it like – If utm value is not present in the url, use default value.
You need the custom version of the plugin, please DM me via Slack channel (https://www.haktansuren.com/slack-handlwp/) so I can help.
Hola excelente articulo, solo una pregunta,
¿puedo crear utm diferentes a las que ya existen para traer el campo ejemplo utm_ciudad ?
As of now you can’t use custom field like utm_ciudad. You need custom version of the plugin to be able to do that. If you can get me in touch via Slack, i can help more https://www.haktansuren.com/slack-handlwp/
I’m using SmartTheme (its a theme from OptimizePress plugin), and it has a integration to use native optinforms in the posts. I use this integration with activecampaign.
I would like to know from witch URL the LEAD came from, that is possible?
Hi! Is it possible to make it work with hidden fields in woocommerce fields with this plugin? https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/
Not sure what your are trying to do… However, HandL UTM Grabber already records all the UTM variables in the order automatically. And V3 (premium) version does a lot more. See this page about how it works https://handldigital.com/utm-grabber/documentation/public/books/woocommerce-integration/page/collect-utms-in-woocommerce-orderpage.
Step for create zaiper hook
I am using WP Forms, do you have instructions for this plugin as well?
I have tried adding the Default valie as [utm_source] and have also tried adding the custom CSS class as: utm_source without the wrappers, but neither of these work.
What might I be doing wrong?
I am using WP Forms, do you have instructions for this plugin as well?
I have tried inserting the shortcode [utm_source] in the Default Value in the Hidden field, I have also tried adding: utm_source to the Custom CSS class field. Neither is working. Do you have suggestions for how to make it work?
Thank you for the help.
I actually highly recommend you to upgrade to the V3 of the plugin https://handldigital.com/utm-grabber. We have a VERY easy of implementation for WP Forms, see the doc here https://handldigital.com/utm-grabber/documentation/public/books/wp-forms-integration/page/wpforms-integration. But it is exclusive to V3.
Hi, in the contact form 7 shortcode shared all “&lt;” and &gt; to be replaced by “”.
Hi, thanks for the plugin, it’s good to be able to track where the leads are coming from.
However i’d like to check, what’s the name of the cookies that you save in the browser?
Also, how long will the cookies be valid?
This is the list of the COOKIES we save in the browser https://handldigital.com/utm-grabber/documentation/public/books/102-getting-started-for-handl-utm-grabber-v3/page/native-wp-shortcodes. We use the exact name matching the shortcode.
Cookie time is limited to 30 days in the free version. You can adjust it as you wish in the premium version.