Improving ROI through Website Analytics and Search & Conversion Marketing
Use these statistical testing tools to analyze your ppc split tests, conversion marketing tests, estimate sample sizes, and more
Contact Us | Careers | Client Login | Social Responsibility | Blog
WebShare Search and Conversion Marketing, Google Consulting Services Logo
Website Analytics
Conversion Marketing
Search Marketing
PPC Management
Website Design
eCRM & E-mail Marketing
Training
Google Consulting Services
Your website has never before meant more to your bottom line. Make sure you're getting the most out of your online investment through advanced website analytics, search and conversion marketing, usability and website design, traffic acquisition strategies and online advertising management with WebShare, LLC.
Website Analytics are crucial to the measurement and improvement of your website. WebShare can help you define your online success metrics and track how visitors get to your site, what they do while they're there, how they're monetized or converted into customers, and how they eventually leave.
Your website is perhaps the most effective testing ground you'll find for understanding how your marketing messages resonate with your customers. Through statistical experimentation, very small changes to the elements on your pages can have a profound impact on your conversion rates and your bottom line.
Leveraging the power of search as a traffic acquisition strategy can help drive highly targeted, qualifed traffic to the most relevant pages of your website. WebShare helps clients understand how search engines can attract new customers and creates customized programs that fit the specific needs and goals of client websites.
Using Google Adwords, Yahoo! Search Marketing, MSN adCenter, or any other paid advertising campaigns? If so, you need to make sure you're managing these programs correctly. From fully outsourced management to training programs, WebShare helps you manage your online advertising to profitability metrics.
WebShare's wealth of experience in conversion and usability testing and search engine optimization is key to the website design and deployment services we offer. We build websites that ensure your potential customers not only find you, but have an experience that contributes to your goals and financial success.
If you're managing your online marketing programs in-house, WebShare's training programs can help you understand, manage, and improve upon topics ranging from website analytics and statistical conversion testing to search marketing and online advertising campaign management.
WebShare is a Google Analytics Authorized Consultancy, a Google Website Optimizer Authorized Consultancy, and a Google Adwords Qualified Company. Let our experts help you get the most out of the Google programs and services that drive your business - and your bottom line.
Leveraging your CRM data to drive traffic and conversions on your website can open up new doors to your online strategies. From eCRM integration solutions to Email marketing campaign management, WebShare can help make the most of your customer relationships.

WebShare Blog
WebShare's Search and Conversion Marketing Blog - Blog posts about website analytics, search and conversion marketing and more from a Google consulting services firm
Most Recent Posts:

Search & Conversion Marketing Blog Categories:

Search & Conversion Marketing Blog Archives:

Search & Conversion Marketing Blog
Search & Conversion Marketing Newsletter
Get Our Feed (RSS)

Enabling cross domain tracking with unsupported navigation - Part 2

This is a 3 part series on cross domain tracking with Google Analytics in non-standard situations:

  1. Part 1
  2. Part 2
  3. Part 3

When faced with a non-hyperlink and non-form submission crossing of domains, our first thought might be to write a method that simply takes the GA query string variables (generated by our standard solutions) and appends them to the end of our destination URL.

But, Google Analytics is doing a bit more than this in its dedicated functions.  Specifically, it uses a hash function as a checksum in order to make sure that the cookies being passed are from the desired source (this ensures that you cannot maliciously affect someone else’s data using GA cookies). This checksum is calculated on the server side and stored in the _utmk variable.  Having to write your own server side hashing by reverse engineering the algorithm GA uses to do this checksum isn’t our ideal situation.

So what to do?

The first thing we have to do is undersant how the _link() and _linkByPost() functions are working. Looking specifically at some of the ga.js codebase, we see:

<code>
a._link=function(b,e)
{
if(i.I&&b){
a._initData();
a.a[p].href=a._getLinkerUrl(b,e)}
};
a._linkByPost=function(b,e){
if(i.I&&b&&b.action){
a._initData();
b.action=a._getLinkerUrl(b.action,e)
}
};
</code>

One thing we immediately notice is that both functions require a URI to be passed in, and yet take two parameters, the second being “e”…and both then take this and pass it and the target (b for hyperlinks and b.action for forms) along to a _getLinkerUrl() function. Let’s take a closer look:

<code>
a._getLinkerUrl=function(b,e)
{
var j=f(b,"#"),t=b,v=a.qc();
if(v)if(e&&1>=j[w])t+="#"+v;
else if(!e||1>=j[w])if(1>=j[w])t+=(r(b,"?")?"&":"?")+v;
else t=j[0]+(r(b,"?")?"&":"?")+v+"#"+j[1];
return t
}
</code>

Again, we see the “e”, and in order to figure out what’s happening, it’s important to understand some of the features and quirks of Javascript, like:

  • Constructors can return values
  • No block scope
  • Reserved words can be overriden
  • Every function returns a value

As objects are essentially associative arrays, they are dynamically capable of adding properties and methods. The key to understanding “e” is found in the following declaration:

<code>
var _gat=new Object(
{
c:"length",
lb:"4.2",
m:"cookie",
b:undefined,
cb:function(d,a){this.zb=d;this.Nb=a},
r:"__utma=",
W:"__utmb=",
ma:"__utmc=",
Ta:"__utmk=",
na:"__utmv=",
oa:"__utmx=",
Sa:"GASO=",
X:"__utmz=",
lc:"http://www.google-analytics.com/__utm.gif",
mc:"https://ssl.google-analytics.com/__utm.gif",
Wa:"utmcid=",
Ya:"utmcsr=",
$a:"utmgclid=",
Ua:"utmccn=",
Xa:"utmcmd=",
Za:"utmctr=",
Va:"utmcct=",
Hb:false,
_gasoDomain:undefined,
_gasoCPath:undefined,
e:window,
a:document,
k:navigator,
t:function(d){
var a=1,c=0,g,o;
if(!_gat.q(d))
{
a=0;
for(g=d[_gat.c]-1;g>=0;g--)
{
o=d.charCodeAt(g);
a=(a<<6&268435455)+o+(o<<14);
c=a&266338304;
a=c!=0?a^c>>21:a
}
}
return a},
</code>

So “e” is actually just the window itself.  Now that we know that by passing in the url and the window object to _getLinkerUrl(), we are able to handle both hyperlinks and forms, we can see if it will work for our DIV container example. Let’s give it a try…

<code>
function GoogleAnalyticsCookieAppend(uri)
{
var c = pageTracker._getLinkerUrl(uri, window);
return c;
}
</code>

We can test this and see that our cookies are indeed being passed.  Now, what if we want to pass info with other query string variables?

Continue to Part 3

Leave a Reply