Anyone using BlueSnap's Google Analytics integration? - google-analytics

Here are BlueSnap (formerly Plimus)'s instructions for integrating Google Analytics in their hosted checkout pages:
How can I define my sales goals in Google Analytics?
To set-up your sales goal and funnel, you’ll need to set-up 2 goals. Login to your Analytics account, find the relevant Website Profile and click on Edit.
Set-up the following under the Goals section:
Goal 1: Purchase Successful:
Goal URL: /BlueSnapBuyNow/Buynow Result Success
Goal Funnel:
Step 1: /BlueSnapBuyNow/Buynow$
Step 2: /BlueSnapBuyNow/Buynow Step2
Step 3: /BlueSnapBuyNow/buynow processing
Goal 2: Purchase Pending:
Goal URL: /BlueSnapBuyNow/Buynow Result Pending
Goal Funnel:
Step 1: /BlueSnapBuyNow/Buynow$
Step 2: /BlueSnapBuyNow/Buynow Step2
Step 3: /BlueSnapBuyNow/buynow processing
Those goals didn't seem to work for me.
Is it because of the spaces and dollars?
For example:
However, Goal 1 started working when I changed the Destination to /?thank-you=1 (the redirection back to my site which the users get upon purchasing).

Here is some updated documentation about how to set up the BlueSnap integration with Google Analytics:
http://support.bluesnap.com/docs/google-analytics
The URLs for the goals have been changed, as follows:
URLs for GA goals

The Dollar sign ("$") is used for Regular Expressions, and is used to mark End of line.
My guess is that the Destination drop-down should be set to Regular expression instead of Equals to, although it unfortunately does not seem to be specified in the setup guide you provided.
Also, depending on how your URLs are set up for your checkout process, "Result Success", "Step2" and "processing" might be suggested Step names for your Goal, and not be actual URLs.

Related

How do I handle hashtags in regular expression for google analytics?

I have a URL goal I'm trying to track as a destination in google analytics. Let's say its https://foo.bar.com/#/home.
Using "Equal to" I get nothing. Using "Regular expression" When I type it in as a destination goal foo.bar.com/#/home I get nothing.
./home 22.31% conversion rate over last 7 days
.#/home 8.14% conversion rate
.bar.com/#/home 0 conversion rate
.bar.com#/home 8.14% conversion rate
.foo.bar.com#/home captures nothing
foo is dynamic so I only want the urls with both start with foo and have .bar.com/#.home.
Is there something about the # thats the issue?
EDIT
now i'm trying foo\.bar.com/*/home and I'm getting 8.5%. Is that correct?
Hashes are not tracked in GA by default, so if you go to your real-time reports (or even just by analysing your collect hits via GA Debugger or dev tools), you'll see that whenever a hash appears in your page path, everything from the hash forward will be removed. This explains why you see 0% conversion rates for some of your attempts. You would have to send a virtual pageview instead and modify the destination url, so something like this:
ga('send', 'pageview', '/vpv/new/destination/path');
And then in your goal destination, you can use the new path of /vpv/new/destination/path.

Google analytics e-commerce data is blank

In google analytics admin, I've chosen 'objectives' -> 'payment made' and defined the objective detail as "regular expression" and entered '/step-4.html' in the text box.
This is because and the end of my shopping cart the URL contains somewhere 'step-4.html' in it.
However, when analysing the reports, this objective is never met although there were some sales and test orders that reached this page.
Also, in admin, I've activated the e-commerce definitions but my conversions are always zero in the reports.
Why is this and how can I fix this?
I presume you are talking about a destination goal, so if your page ends in "/step-4.html" with anything else in front, then it should be:
.*\/step-4\.html$
If that string is somewhere else in the URL (and not at the very end), then you just have to replace the $ with .*.
(Note that I've escaped forward slashes and dots.)
You should be able to see conversions in Real-Time reports if all is working.

Tracking a conversion funnel that changes subdomains

I am trying to set up Google Analytics (Universal/analytics.js) to track a user account set-up funnel on a single website with many subdomains. On each subdomain, a user can express interest in creating an account, and then create the account. Once the account is created, they leave the subdomain and arrive on the main domain.
For the subdomain foo, the flow is like this:
foo.maindomain.com - register interest
foo.maindomain.com/inv/acc0unTt0k3n - enter account set-up details
maindomain.com/extra_information - info is supplied
maindomain.com/home - goal end point reached
I have set up a View for each subdomain e.g 'Viewing foo.maindomain.com', and each View has a Filter that accurately shows visits to foo.maindomain.com & foo.maindomain.com/inv/acc0unTt0k3n.
I don't know how to go about tracking traffic through this whole funnel. My ideal end-goal would be to track this funnel for all subdomains combined, but I would be satisfied for now with getting a Goal or Funnel that worked for each subdomain individually.
Inside my 'Viewing foo.maindomain.com' View, I have attempted to create a Goal to track this. I can capture the first two steps by creating:
Goal Type > Destination
Destination: /inv/
Funnel: /
This gives a 20% conversion rate, which matches up with my server data for account creations. But if I try to change the Destination to maindomain.com/boarding, and add /inv/ as another step in the Funnel, it no longer works ("Verify this Goal" returns 0).
How can I create a Goal that captures all of these steps?
Make sure you are using the same UA code on every subdomain.
You should then just be able to see all the subdomains in the standard view out of the box - UA tracks across subdomains automatically. See the Google documentation for details
You don't need to set up a view for each subdomain if you don't need it.
Name your master View "Rollup" if you like.
You can see all subdomains in your "Hostname" report for that view.
You may want to overwrite your pageview names so they also incude the subdomain, so you can tell them apart (if say subdomain1.domain.com/index.html and subdomain2.domain.com/index.html exist, in the standard pagetracking they will be aggregated) - this can be done via filters:
Filter Type: Custom filter > Advanced
Field A: Hostname Extract A: (.*)
Field B: Request URI Extract: (.*)
Output To: Request URI Constructor: $A1$B1

Universal analytics goal tracking

I have set up goal to URL destination: '/pageview.html'.
If I execute below URL on my universal analytic page views will increase by 1 (which is correct). Also my goal will increase by 1 (which is also correct).
Link 1 example
http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXX-4&cid=987987987&t=pageview&sr=-&sd=-&ul=-&je=0&fl=-&dt=%2Fphonecallleads.html&dh=www.wednesday.co.uk&dr=http%3A%2F%2Fwww.wednesday.co.uk%2Fbla%3Fhehe%3Dvisitor&dp=/phonecallleads.html&z=321321321
How ever if I execute the same link again but with different number in 'z' parameter to prevent caching on my analytic page views will increase by 1 (which is correct) but my goal will not increase... Why is my goal not increasing ?
Link example 2 witch different 'z' parameter
http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXX-4&cid=987987987&t=pageview&sr=-&sd=-&ul=-&je=0&fl=-&dt=%2Fphonecallleads.html&dh=www.wednesday.co.uk&dr=http%3A%2F%2Fwww.wednesday.co.uk%2Fbla%3Fhehe%3Dvisitor&dp=/phonecallleads.html&z=654654654
Thank you Eike Pierstorff.
The issue was that UA counts goals only once per session.
To resolve that issue I have added an extra parameter to the URL - Session control which starts new session once request is submitted.
&sc=start

Measuring goals for users who have never logged into my site before

I have a web app. The home page has two main actions:
Sign up to the application
Log into the application
I have a goal set up for sign-ups. I am trying to track the goal conversion rate of users who have never logged into the application before.
The problem I have at the moment is that the conversion rate is being skewed by users who are visiting the homepage simply to log in.
Is there a simple way of doing this?
Thanks very much,
Ben
For the kind of tracking you are looking for, there should be some coding on both your system and Google Analytics.
First, I would recommend you place into your system the intelligence to know the number of log-ins the user has made (As an example, a counter on your database).
Now, to implement that, you will need to set a Custom Var in Google Analytics in a visit level, to segment the users from the non-users, in that CustomVar, you can store both the user ID and the number of logins he has made.
This is the on the login page:
Your Code Should Look Like:
_gaq.push(['_setCustomVar',
1,
'Member Login',
'NUMBER OF LOGINS', // SET THIS FROM YOUR SYSTEM
2 //VISIT LEVEL Custom Var
]);
Remember that this code should go before tracking the pageview.
After setting this up, you should use Advanced Segments to check those specific users, one case could be: (Using the example above)
Setup an Advanced Segment that "Excludes" the Custom Variable (Key 1) - Mathing RegExp : .*
This will give you all the never-loged user access.
Something else you could do is set up Adv Segments to check on a specific number of logins
Setup an Advanced Segment that "Excludes" the Custom Variable (Key 1) - Mathing RegExp : [^1]
This will give you all the users that loged-in more than once.
You can find more info on Custom Vars here.

Resources