Generating links for Google Analytics and Omniture - google-analytics

I am trying to build URLs for Google Analytics and Omniture.
GA is simple enough, and those URLs can be built using http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55578
Campaign Source: * (referrer: google, citysearch, newsletter4)
Campaign Medium: * (marketing medium: cpc, banner, email)
Campaign Term: (identify the paid keywords)
Campaign Content: (use to differentiate ads)
Campaign Name*:
Does anyone know how Omniture links are constructed? Do they support this kind of URL?

Omniture does not grab predefined var=value params from a URL like GA.
What you can do though is use omniture's s.getQueryParam() plugin to grab the same parameters generated by that GA tool, and put them in s.prop and/or s.eVar variables.

The basic Omniture campaign tracking is based on the s.campaign parameter, which can be then re-defined (classified) using the SAINT tool. The "cid" (default) URL parameter only takes one value, by default a running number, which is then classified with SAINT. Fetching the value can be done with a plug-in, such as getQueryParam(), which is recommended.
I don't recommend using prop or eVar variables too much on this, since without DataWarehouse or Discover you can't really use several of them in a segment (max. 2) and this makes using 5 parameters quite useless.
The SAINT tool together with the campaign parameter is quite powerful and should be enough for basic needs.

Related

Can Firebase Dynamic Links be used to attribute installations to marketing campaigns?

Firebase Dynamic links allows you to set the utm campaign parameters, however I have not been able to find a clear answer if the campaign parameters survive the installation process and are attributed.
We would like to generate our own dynamic links for non-adnetwork campaigns, e.g. posting on facebook, within edm's etc and be able to work out what campaigns are driving the most installations.
For the campaign information to survive, you'll need to utilize the provided fields when constructing your links. Specifically, the "social media tag parameters" look useful in this case.
However, that info isn't going to be captured in analytics as a campaign, necessarily, and you'll either need to coax this data to generate useful reports or import it into BigQuery for more advanced analysis.

How do duplicate UTM parameters affect reporting in Google Analytics?

I recently ran an e-mail campaign with a partner, who sent me over a URL with their own UTM parameters so they could track performance on their side.
When I handed the information over to our e-mail team and checked as the campaign went live, it appeared that they, out of habit, had added their own UTM parameters on top of the ones sent over by the partner, resulting in a click-through URL that looked like the following -
http://spirit.cruises.com/?cm_mmc=partner_email-_-sprt-multi_product--20161028--clia_plan_a_cruise_month&utm_medium=partner_email**&utm_source**=sprt-multi_product**&utm_campaign**=20161028&utm_content=clia_plan_a_cruise_month**&utm_source**=responsys**&utm_medium**=email**&utm_campaign**=20161028_50pct__Dual_Cruise_Email
As you can see, there are duplicate source, medium, and campaign parameters.
Does anyone know what happens in this situation? Does Google Analytics count both, or just the first, or just the last, or none? What is best practice when there are two parties that want to track performance of a URL in a campaign, and they may have different naming conventions?
(This is my first question, so please be nice :) Thanks!)
GA counts the last set. The proper way to deal with this is to avoid the situation. Email Software is often set to automatically add utm parameters to links (do you do not have to do it manually), but then all email marketing software I know would allow to override the configured default parameters.
I am not sure how your partner could track performance "on their site" via utm parameters unless they have their own GA code integrated in your website (or do you mean that they have access to your GA ?).
If there are two sets of analytics code that require different campaign attribution you would have use differently named parameters - let's say utm_medium2, utm_source2 and utm_campaign2 - and manually override campaign attribution for the second tracker:
// add this to after your usual tracker
ga('create', 'UA-XXXXX-Y', 'auto', 'partnerTracker');
ga('partnerTracker.set','campaignName',<value of utm_campaign2>)
ga('partnerTracker.set','campaignMedium',<value of utm_medium2>)
ga('partnerTracker.set','campaignSource',<value of utm_source2>)
ga('partnerTracker.send','pageview')
That would send data to a second account and override campaign attribution fields. It seems quite unlikely that you have or want that, but if you want to allow your partner to independently track utm values on your website (and everything else with it) that would the way to go.
Frankly I think you should just remove your partners utm parameters. Utm parameters make only sense for the owner of the respective GA account, and that is probably you, not the partner.
I agree with the first answer except for that last point where has says to remove the partner's UTM parameters.
In your case, the destination for the link provided to you by your partner is NOT your own website. The link goes to your partner's website. Therefore, your GA account has zero relationship with the link he sent you.
The way we're getting around this (without doing anything in analytics) for our many partners that we send links to is by using different email subjects per partner. Most email platforms use the subject line (or the internally defined Campaign "Name") as the value for UTM_Campaign.
So different subjects that include the partner organization in them:
"Special discount for ABC Organization members!"
"Special discount for XYZ Company members"
We can then analyze each unique campaign name in GA.

Google Analytics in real time for personalization

Is there a way in Google Analytics to get a visitors information in real time in order to personalize content?
For example, visitor A comes from Google using the "widgets" keyword and using a Chrome browser so I want to show him content related to Chrome based widgets.
Google Analytics provides a Real Time Reporting API as a developer preview in limited beta.
Real Time Reporting API Private Beta access request form.
With all the limitations that this means it may be worth giving a try.
You can find Java, PHP, and Python code examples on the documentation page: https://developers.google.com/analytics/devguides/reporting/realtime/v3/reference/data/realtime/get
In PHP this is the anatomy of the call to the API:
$optParams = array(
'dimensions' => 'rt:medium');
try {
$results = $analytics->data_realtime->get(
'ga:56789',
'rt:keyword',
$optParams);
Probably not. Even if you request from the the Real-time API keyword you will find that. The Keyword returned is the Keyword from your own campaign tracking. So this would only work on links that you sent back to yourself Which really isn't what you want to do. Its a nice idea really
Documentation: rt:keyword
When using manual campaign tracking, the value of the utm_term
campaign tracking parameter. When using AdWords autotagging or if a
user used organic search to reach your property, the keywords used by
users to reach your property. Otherwise the value is (not set).
What you are looking for is the keyword that would be used against a search engine. That keyword isn't returned via the Real-time api.

Combine custom variables and events in Google Analytics to track marketing campaign effectiveness

I'm trying to track the success of marketing campaigns through conversion on a portal. The portal is largely JS based and for right now we can't use URL goal tracking. Instead, I'm planning on using event-based goal conversion that can report all the variables I need. The problem is how do I connect marketing campaigns to the eventual conversion? These campaigns span SEM, email, landing pages, partnerships, etc.
My initial idea was to use a URL param to set a session-level custom variable identifying the marketing campaign that funneled the visitor, and then to compare this to goal conversion. However, I'm not sure custom variables can even be compared to goal conversions in Google Analytics -- and I'm worried that I might be over-thinking this.
I'm worried I'm way over-thinking this. If I create a custom campaign using the URL Builder, will that give me everything I want, allowing me to track campaign conversions?
Yes, I think you are over-thinking things. :-)
As long as you properly tag the campaigns using the utm variables in your destination URLs as they show you how to do in URL builder, they should allow you to see your specific goal conversions by source, medium, campaign, etc. in your GA profile. Using the new Multi-Channel funnels features you'll also be able to see how the sources of previous visits influence future conversion behavior as well.
Generate help with campaign conversion tracking here: http://blog.crazyegg.com/2011/12/02/track-conversions-google-analytics-campaigns/
Info on Multi-Channel funnels here: https://www.google.com/analytics/features/multichannel-funnels.html

Best way to generate an automated report in Google Analytics for a specific collection of URLs

Currently using Google Analytics as a supplement to our paid tracking software, but neither of them are giving us exactly what we need.
I have a list of about 60 or so urls (out of about 1500) on the site that I wish to setup a monthly report for that can be emailed to multiple recipients. I can't seem to figure out how to create a report showing just the hits on these 60 urls, I can apply advanced filters on the content page but those disappear after a while and sometimes error out when adding too many URL's.
Is there a method I'm missing in Google Analytics to achieve this goal or am I better running an SSIS package to pull the URL's from the API and formatting a document that way?
Yeah, advanced filters are not really designed for this kind of thing.
Here are some things which may work for you:
Try setting up a new GA Profile with an Include filter to filter only the URLs that you want to report on. You can use a regular expression to identify the 60 URLs. Then these will be the only URLs tracked in that particular profile.
Try setting up an Advanced Segment to select the Pages using a very long "OR" filter.
You could set up a new GA account and log the URLs into that account with additional tracking code. This is not really recommended as the 2 accounts will share tracking cookies.
Use Excellent Analytics to pull down data into Excel for the URLs in question using the GA Export API.

Resources