4

I am looking for a way to setup several goal steps that are not URLs.

My funnel should look like:

  1. unique visitor
  2. interested visitor (visited more than 1 page)
  3. registration started user (event fired)
  4. registered user <- goal (event fired)

But I can't identify some of those 'steps' by a simple URL.

My approach is now to fire an event with an url like:

ga('send', 'event', 'reg', 'regstart', {'page': '/my-new-page#regstart'});

and for registration success

ga('send', 'event', 'reg', 'regsuccess', {'page': '/my-new-page#regsuccess'});

and this is my config:

enter image description here

I fired the events via console to see if it works - but nothing shows up in analytics report.

Any ideas why?

Edit 1: I edited my whole question because of @Geoff Jackson recommendation to track this special url with an event.

14
  • Yes you could still do that with URL's. Just specify step 2 as a wildcard on the domain.
    – zigojacko
    Commented Feb 13, 2014 at 16:18
  • And what about step 3? There's on each page the possibility to open a regform.
    – Jurik
    Commented Feb 13, 2014 at 16:35
  • Just make the regform append the URL with something when opened and use that in the URL for the step.
    – zigojacko
    Commented Feb 14, 2014 at 9:08
  • Do you mean something like #regform? That's a good idea, but still bad that we've to use workaround instead good solutions - but it's for free... well, not totaly, they get all of our user data.
    – Jurik
    Commented Feb 14, 2014 at 9:13
  • It isn't a workaround though - that's how it is supposed to work and what it caters for. You can use regular expressions as and how is needed in Google Analytics for scenarios such as yours. If you aren't happy with this kind of config in GA, your web developer could always implement something further on your site that would make this process even easier for GA tracking.
    – zigojacko
    Commented Feb 14, 2014 at 9:20

1 Answer 1

5

@Geoff Jackson helped me to write this little how to.

If you have a website with a lot of Ajax in use or just steps/goals that you can not identify via URL you will have to use extra pageview-tracking. That is because Google Analytics does not allow custom events or dimensions in their goal steps.

Example: On each page of your website is a button that opens a lightbox with a registration form. When your visitor registers, there will not be a 'thank you' page. Informations about next step, that he has to check his email account for an activation link, will show up in this lightbox too. Your goal is that a visitor activates his account by clicking this link in email that you have sent him.

First we integrate the events for...

... starting registration process. This event will be fired as soon as the lightbox with registration form opens.

ga('send', 'pageview', '/regStart');

... next is when he sends the regform. Event will be fired as soon as server answers via Ajax that confirmation mail was sent and on screen is an appropriate message.

ga('send', 'pageview', '/regSuccess');

... and finally, we setup an event for our goal. That will be fired as soon as he clicked the activation link in the confirmation mail.

ga('send', 'pageview', '/accountActivated');

This last step is not necessary if you've a special 'account activated' page. But since there could be many possibilities and you don not want/can not use regexp, this might be a good solution.

Now we have to setup this goal at your Google Analytics account like this: Goal setup at Google Analytics

I test such scenarios with simple console calls - so if you just want test it - setup your goal and copy paste those GA-events.

Here you can read more about it at Google docs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.