Google Analytics Testing with Webdriver

835 views
Skip to first unread message

guru kiran

unread,
Sep 25, 2012, 3:14:43 PM9/25/12
to seleniu...@googlegroups.com
Hi,
    Is there a way to automate testing google analytics using webdriver?

-----------------------------------------
Thanks and Regards,
Guru Kiran Bv,

sirus tula

unread,
Sep 25, 2012, 5:15:13 PM9/25/12
to seleniu...@googlegroups.com
Good question, Guru.
 
I ran with same problem before. I don't think there's any easier way to automate testing google analytics.
 
However, i think you can see the javascript events triggered by google analytics in the page source and test those events which is what i did.
 
Hope that helps!
 
Sirus

 


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

guru kiran

unread,
Sep 26, 2012, 2:56:01 AM9/26/12
to seleniu...@googlegroups.com
thanks Sirus... will do that for now...
--
-----------------------------------------
Thanks and Regards,
Guru Kiran Bv,
Bangalore,
India
mobile: 9886446414

Huzefa hussain

unread,
Feb 11, 2014, 8:56:22 AM2/11/14
to seleniu...@googlegroups.com
hey sirus , 

can you please share you code of google analytics or if you know the way how to check it pls reply ASAP

Guru Kiran

unread,
Feb 11, 2014, 10:50:13 AM2/11/14
to seleniu...@googlegroups.com
Huzefa, I managed to use browsermob proxy and analyzed traffic for the triggered events. 
Look up on how to use browsermob and webdriver you will find a lot of examples on how to integrate it too.

Lastly, I would advise you to think if you really need to automate GA or any web analytic. If a tracking tag is broken it will be know to the SEO team with in 24 hours.
So depends on how you plan to run the test and against every development cycle?  

----------------------------------------------------------------------------------------------------

Thanks and Regards,
Guru Kiran Bv,
London.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ability is what you're capable of doing..... 
Motivation determines what you do.....
 Attitude determines how well you do it....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages