Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Automate Web Analytics testing?

Omniture/SiteCatalyst's code is integrated onto the webpage to collect the analytics in our firm.

Current process: SiteCatalyst id deployed by pasting HTML code onto each page of the website. This HTML code contains variables and other identifiers that facilitate the data collection process. These variables may be dynamically populated with server or application variables. The code snippet also calls the JavaScript library file, which contains SiteCatalyst-specific JavaScript functions used during metrics collection.

We use Add-on's like Charlie, HTTP Post, DigitalPulse Debugger to Test if the code inserted has accurate values corresponding to it. This process is time consuming and tedious.

How to Automate this process? Any help would be appreciated!

Example 1:

 <a href="javascript:void(s.t());">Click here to send a page view</a>
 s.pageName="New Page"
 s.prop1="some value"
 void(s.t());

Example 2:

 s=s_gi('myreportsuiteid');
 s.linkTrackVars="prop1,eVar1,events"; s.linkTrackEvents="event1";
 s.prop1="some value"; s.eVar1="another value"; s.events="event1";
 s.tl(this,'o','My Link Name');
like image 273
mb963 Avatar asked Jul 30 '13 21:07

mb963


People also ask

Can analytics be automated?

Data analytics automation is the process of using advanced computer programs and simulations to examine digital information . Depending on a business' industry, its staff might collect statistical data on customer information, production processes, profitability or performance metrics.


2 Answers

There are a few different ways to automate testing. I've been looking into it lately myself. So far I'm looking into Selenium, Zombiejs and Phantomjs. You can search for "headless testing" which basically let's run code as a browser and test conditions on the page you visit.

Here's a good place to start https://github.com/ariya/phantomjs/wiki/Headless-Testing

Using these platforms, you could easily set pages to automatically validate if the SiteCatalyst code is firing, page names are correct, click events happen etc.

Selenium is an enterprise product whereas the JS frameworks would be more of a development effort.

like image 177
BrettAHale Avatar answered Nov 01 '22 07:11

BrettAHale


we usually do this using a more customizable proxy application called Fiddler which we use to capture all the traffic sent from our brower.

Fiddler has an internal scripting language that let you make any type of check on the data passing in the Adobe Analytics call and highlight in the interface any bad call.

like image 21
Claudio Sermenghi Avatar answered Nov 01 '22 09:11

Claudio Sermenghi