Did you like how we did? Rate your experience!

Rated 4.5 out of 5 stars by our customers 561

Video instructions and help with filling out and completing Can 8850 Form Referral

Instructions and Help about Can 8850 Form Referral

Ever wondered where all these email signups come from in this video I'm gonna show you how you can track from which traffic source your leads or form submits come from with the help of Google tag manager hi there and welcome to another video of GTM training comm with me Julien and today we want to talk about how you can track the source of your incoming leads or form submits with the help of Google tag manager but before we get started as always these little videos are brought to you by GTM training com and if you want to follow along I will highly recommend it to download the source code template that we have prepared for you at GTM training comm slash source cookie with this sauce cookie you'll be able to track the different sources that your users used to come to your page and we will use the resulting cookie in this video so if you want to download this source cookie template for free head over to GTM training.com slash sauce cookie now in the past videos here GTM training we have discovered how we can send an event when somebody submits a contact form and fire an event into Google Analytics and as a result we will get our event report filled and we'll be able to look at our contact form and see how many times it was submitted in the last few months or days now if you want to know where these contact forms of myths originated from you can always add in Google Analytics a custom dimension such as the source medium dimension which will give you the traffic source that the user came from unfortunately it is not possible to tie this back to a specific submit or a specific email address because Google Analytics doesn't allow to send in any kind of personal identifiable information into the tool and you will only get this aggregate form of finding out how many people came through Google organic to submit a form which is also great information because you already can see how effective a channel but in the case of accurate lead source tracking you wouldn't be able to identify where this specific lead came from and since this is prohibited by the Google Analytics Terms of Service we need to have a different tool to pick up this information and if you look at our contact form most of the times they are part of a CRM system such as Infusionsoft drip activecampaign MailChimp or something like Salesforce and since those systems already hold the email address they would be really well-suited to attach to the email address the source information so how could we port the traffic source into such a form and then submit everything at once to our CRM or email system well in our last video about the sauce cookie we already talked about how we can implement a cookie on our website and in the users browser that tracks the different sources that the user came from during his different visits coming to our page now this information is something we want to have submitted to our CRM as well now how do we get the information that is in this cookie into this form well first of all you would need to prepare your form in this case this is a wordpress form and i have built in a hidden form field which is called source and the field ID is 16 now these hidden form fields are form fields that are not visible to the user but you can fill them via JavaScript in the background so just to make this a little bit more visible for you you can look into our HTML and make our hidden form field visible by finding it within the HTML and here we go and it has the type hidden' if I changed that hidden type to text should be able to see it here we go that's our hidden form field that wouldn't be normally visible to users now we can manipulate this form field with a little bit of JavaScript so let's first of all copy our ID here and go into our JavaScript console of our developer tools and we can use the JavaScript commands document dot get element by ID then fill in our ID that we have previously copied and we can look at the value right now the value is empty if you wanted to fill up you would use the command by simply setting the value but with an equal sign for example to test and this is JavaScript ax we can use to fill our hidden form field so let's copy this and see how we can accomplish this in Google tag manager let's go over to Google tag manager and open up a new tag and this tag will be called so spot will be a custom HTML and it will be fired on the contact page then we choose the custom HTML tag template and input our JavaScript since this is a custom HTML tag we need to surround our JavaScript with script tags and this here with the semicolon now we just need to choose a trigger and we will go with the subpages trigger here and i've already prepared a trigger here on the contact page where the URL contains contact let's attach that to our tag and create our tag let's preview on debug this reload our tag and again making our hidden form field visible and we see that now our tag has fired on the contact page it dynamically filled our field with the value test now obviously we don't want to fill it with the value test but with our sauce cookie and we already built a variable to read this cookie called sauce cookie in the last lesson which holds the value of our.

If you believe that this page should be taken down, please follow our DMCA take down process here.