google analytics and lead capture - google-analytics

Here is what I am trying to achieve:
I have a landing page with a lead capture form (Name email phone). I am running adwords campaigns to capture these leads.
I want to know is there any way I can tag each lead with the keyword and campaign it came through. This way i will be able to know which campaigns are generating quality leads for me.
If there is any sample code available it will be great.
P.S My campaigns are autotagged so I can't capture data from URL and UTM parameters.

You just need to define a goal on that lead.
You can define this goal :
on the URL where your visitor are redirect after the form validation if there is one
if not on an event you wil add on form submit
Then get all the statistics in the Analytics Advertising reports.
note : don't forget to activate autotagging on your Adwords campaigns.

Related

Tracking help center article link clicks in Google analytics

My company's support department uses freshdesk to handle our help desk tickets and also to host our solution center articles. I am trying to track when users click links to our help center articles that we put in our ticket replies. So far I've been trying to do this by using utm parameters, and creating a unique campaign for each article. I am running into difficulty programmatically accessing the text area where we type our replies to add the utm parameters to links before they are sent out. I am wondering if there is a better way to go about this that I'm not thinking of. I know this is pretty specific, but any ideas are very Appreciated!
Managing distinct campaign names for each help article may be a hassle. I'd suggest you turn to event tracking for this kind of task. You may have set up sending an event to analytics each time a link to help article is clicked and put the URL of the link to some of the event parameter e.g. 'event action' or 'event label'. So then you can get the event data in Behavior > Top events reports for each link
Some links for you to explore:
About Google Analytics Events
Tracking link clicks with Google Tag Manager
Event tracking with google analytics.js

Tracking ecommerce conversions

I'm looking to run a PPC campaign on LinkedIn, and I'm just wondering what the best way would be to show how many people that have clicked on ads, have placed an order. LinkedIn don't provide any form of conversion code - and I'm not sure how I could set this up within Google analytics?
use campaign tracking .This is the only way we can track visits from relevant campaign banners. Campaigns in Google Analytics :
https://support.google.com/analytics/answer/1033863?hl=en
Use this line below to create your campaign code.
https://support.google.com/analytics/answer/1033867?hl=en
use “Campaign Content” to separate banners (names) .
you can use Advance segments to track the number of conversions.

Creating a campaign to track links

I'm new to google analytics and I'm a little confused on how to get an unpaid campaign up and runnning. I'm making the campaign in order to track links to a page from different sources (website buttons, emails, newsletters, etc.). What I'm trying to do is set something up in GA so that I can track how people are getting to a specified page. I've been reading this as well:
https://support.google.com/analytics/answer/1033863?hl=en&ref_topic=1032998
Do I have to create the campaign in google analytics (and if so where) or do I just apply the appropriate campaign/tracking tags to the links I need tracked and it automatically creates it? Also, how would this work with emails?
Thanks for any help!
Essentially, you will build the campaign tracking URL in URL Builder and put those links in your email, newsletter, etc. Once visitors start to click the links via the email, a campaign will be created under Acquisition > Campaigns.
You do not need create campaigns at Google Analytics: when you tagged campaign manually or at URL builder, your campaign data(source name,campaigh name and others) will be categorized by Google Analytics automatically.
GA parses tags at your links and save data about you campaigns.

Custom Google Campaign Tracking

I'm building out a site that has predefined affiliate ids that are driving traffic to our sites. We currently use this paramater to track our seo work internally. Now we want to do the same through Google's Campaign Tracking at the Session level. The problem is we don't want to change our url, is it possible to manually build the Google campaign tracking pixel url? I'd like to take our affiliate ids and convert them over to a tracking campaign pixel for Google.
Seems like Google built this so all the tracking data must be in the url, is there a way to do the same tracking w/o the google data in the url?
Instead of:
http://www.mypage.com/?utm_source=google&utm_medium=cost-per-click
I want to use(javascript will do the rest):
http://www.mypage.com/?affid=123456
Turns out here is exactly what I was looking for:
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiCampaignTracking
This is essentially doing everything the Google Campaign Tracking does but you have full control over what parameters are passed in the tracking pixel. I don't have to change or mess with the url, our in house tracking will work as it should, and now the google tracking pixel will be built as I specified.
You can programmatically set up a virtual pageview based on the affiliate id.
In an if statement, determine if you have an affiliate id. If you do, write some logic to build out the proper campaign, medium and source, then concatenate it to your URL. Pass that to GA via the trackPageview method instead of letting it do it's own thing.
Keep in mind that passing a virtual URL does replace it's default behavior, so you won't have the affid parameter in your content reports unless you build it in to the virtual pageview.

tracking users with google analytics after they leave my domain to make a purchase and come back

I would like to track where users originally came from when they make a purchase on my site so I know which keywords are more profitable and which websites are best for advertising.
an example is a user is on my site with my google analytics tracking code which has details of where they came from, and then decides to upgrade. they leave my domain to go to my biller (2checkout) complete the purchase and return to my thank you page.
I have transaction code and analytics code on my thank you page and the transactions are showing up with the correct product/amounts in GA however there is no other data and in my reports the referring url is always my biller or a credit card companies authorisation page.
i can manually connect which customer is which by saving their referring data when they first come to the site and then matching it up after they make a sale, but I would like it to show up in my google adwords / analytics account where it is easier to manipulate the data and see trends.
if anyone can help me with this annoying issue I would be vbery greatful, but I fear I may end up living off reports I create and then matching them up with adwords manually :/
One thing you can do is have a click event trigger a custom variable. When the user clicks on whatever link that takes them to your biller, have the custom variable trigger with the information you want to carry over (like the current page URL, some campaign name, whatever). Specify the custom variable's scope as Session or Visit so that it get associated with the thank you page.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
An alternative is to do campaign tracking:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55540
That is more or less the same principle as the first suggestion, but with using specified URL parameters. Depending on how your pages are actually coded, you may need to push a virtual page view with the campaign code(s):
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55521

Resources