Closed

Javascript Fix Needed For Google Analytics/Safari Bug

This project is now closed with a project budget of $30 - $100 USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $100 USD
Project Description

Hi,

There's a bug in the Google Analytics code that causes Safari to mess up tracking information. The issue with Safari is how it handles URLs, specifically symbols used by Google Analytics to pass cookies in cross-domain tracking mechanism. That's what I need fixed. Here's more detail:

So while Chrome handles the link as

[url removed, login to view]|utmccn=(organic)|utmcmd=organic|utmctr=hello&__utmv=-&__utmk=10792628&s=STR0682586395&pc=&page=[url removed, login to view] (notice the "utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=hello" part)

Safari handles the same link as this:

[url removed, login to view](organic)%7Cutmcmd=organic%7Cutmctr=hello&__utmv=-&__utmk=122181387&s=STR0682586395&pc=& amp;page=[url removed, login to view] (this time we have "utmcsr=yandex%7Cutmccn=(organic)%7Cutmcmd=organic%7Cutmctr=hello")

Google Analytics tracking code only works with what it sees i.e. the actual URL, and it seems like the way Safari handles it doesn't let GA code work properly.

I strongly believe that the problem is in the pipe character "|" delimiting the cookie values, but there's no way to change the way Safari handles it.

Here are a couple of links to related questions:

1. [url removed, login to view] (yes there's a dot in the end!)

2. [url removed, login to view]

3. [url removed, login to view]

The code you create must do two things:

1) Fix this Safari bug

2) Not affect any of the existing Google Analytics tracking.

Please enter the word "SALIENT" in your bid to show you've read all of this.

PLEASE NOTE: I WILL ONLY CONSIDER CODERS WHO INCLUDE THEIR BACKGROUND IN BOTH JAVASCRIPT AND GOOGLE ANALYTICS.

Thanks in advance!

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online