How To Debug A Coremetrics Implementation
How To Debug A Coremetrics Implementation
During a web analytics implementation, or while tracking down the source of tracking errors, its important to check whats being sent to the analytics servers. Coremetrics provides 3 ways to debug or QA an implementation: 1) The Coremetrics TagBar. This is the everyday staple of QAing. Its an Internet Explorer/Firefox browser plug-in that shows exactly what is being sent to the Coremetrics servers. Data shows up in the tool instantly. If you are looking for how to install the Coremetrics TagBar you need to start within the tool by navigating to Manage > Installations > Tools Browser Plug In.
Once its installed, open it up by clicking on the icon in your browser. Open Tag Monitor to make the tags persist, which is necessary for QAing. These are a few of the tags you will look for.
Page View tag: For each page being checked, check that a Page View tag exists and has the right Page ID, category ID, and other attributes. Link Click Tag: For Site Promotions and Real Estate tracking, you will need to check the Target HREF/URL link in the Link Click Tag. These tags will be marked by the text cm_sp= or cm_re.
Note that there will be multiple link click tags, since some are attributed to the physical link in order to populate LiveView, while others populate the site promotions or real estate reports. If the link click tag doesnt have the query strings youre looking for, just ignore them. It doesnt mean the tracking is being sent twice. Validation of cm_sp= tracking depends on appearance of the properly formatted cm_sp= value within the Target HREF/URL(hr): parameter of the Link Click tag. It should appear when users click on the link. Note that the site promotions parameters are tracked via this Link Click tag, not the destination URL in the link click tag or the page view tag.
Product View tag: This is used to track product views and product information. It should show up every time there is a buy now, add to cart, or similar buy action available for a product.
Check that the correct product ID, name, and category ID are being sent, as well as any additional attributes. **UPDATE: I have created a follow-up post that details how to debug Coremetrics without using TagBar.
2) The Implementation Test Tool (ITT). This is a testing interface that shows what has reached the Coremetrics testing servers. Point your QA site to the Coremetrics test servers and then access the data at http://itt.coremetrics.com. Data shows up within a few minutes and gets wiped out at the end of the day. The main benefit of ITT is that you can see the cm_mmc marketing parameters that dont show up in the tag bar. In addition it can be used just to confirm that data is actually reaching the servers, or to double check what you saw in TagBar. To use ITT, perform all the actions on the site that youre interested in testing. Then log into ITT and enter in your cookie ID. Entering your cookie ID isnt necessary but it lets you filter the data for just your own browsing activities, which is what you want. You can find your cookie by setting the date range to the time period you clicked around, viewing any report, and finding your cookie in the Cookie ID field.
To see page view tags, you should select the Page View table. For site promotions and real estate tags, you should select the Parametric Links table. In the Parametric Links table, there are separate fields for Parameters 1 through 4. The Parametric_Link_Type column displays an S for cm_sp site promotions tracking and an M for cm_mmc marketing tracking. 3) Coremetrics Test Reports. Similar to ITT, this contains test data. However, rather than having a test interface, these reports look just like actual production reports, so you can view how the data will look when it goes live. Data takes the normal amount of processing time to show up usually a day. Between TagBar and ITT, you should almost never need to use the Coremetrics Test Reports. It is only really useful if you are testing the CDF (file that categorizes pages and products) or just prefer to see the data exactly as it will appear in the reports.
it will work for browsers like FF and Chrome, not just whatever old version of IE TagBar currently works with. it can validate what youre seeing in TagBar if you need a second opinion :) the output can be easier to read than TagBar since it both stores the calls and displays them separately, rather than listing them all one after the other there might be some cases where you dont have access to the official Coremetrics TagBar since their tool can only be downloaded while logged into a Coremetrics account. the method here can actually be easily adapted for other web analytics tools. Im just focusing on Coremetrics since Omniture and Google Analytics have quite a good ecosystem of tools that are even better designed for this purpose, while Coremetrics does not for example I previously wrote about tools for debugging Google Analytics, but none of those tools work very well (or at all) for Coremetrics.
So, here we go. HTTP SNIFFING FOR WEB ANALYSTS - TUTORIAL 1) Get an http sniffer (also known or available as web debuggers, packet sniffers, http analyzers, etc, but we dont need anything too complicated here)
Im going to recommend HttpFox. It is a free, simple plug-in for Firefox that works great for this purpose. Download it here:https://addons.mozilla.org/enus/firefox/addon/httpfox/ (Chrome has a built-in sniffer that you can access by navigating to the network panel of Chromes developer tools and clicking on the Headers tab. However, this tutorial will focus on HttpFox for Firefox because its easier to use). 2) Install the plugin and restart Firefox. Activate it by navigating to Tools > Web Developer > HttpFox > Toggle HttpFox (or just hit Shift + F2)
3)
Click the play icon and make sure Start is greyed out.
4) Now the fun starts. Navigate to the site youre checking out. For the purposes of this tutorial, Im going to Costco.com. 5) Oh no! There are hundreds of calls.
6) We need to filter these so we just see what were looking for: the calls to the Coremetrics servers. Type in ci= into the search filter box. This will limit it to just calls with the text ci= in them, which shows up in all Coremetrics tags (more on that in a minute). You could probably choose some other text but Ive found this to be reliable across any site running Coremetrics, and excellent for filtering out the nonCoremetrics calls as well. Now well see just the Coremetrics calls.
7)
You can click around the site and these calls will persist in the top section, with
the most recent calls appearing on the bottom. Click on the Query String tab to see a parsed list of what is being sent to Coremetrics.
8) Now lets look at an example result and dig into it. Here is the first call that gets sent from Costco.com to Coremetrics.
You can see a long list of query strings. Lets go through one by one:
Parameter Description
ci
Client ID
st
vn1
ec
vn2
pi
ul
tid
Tag ID/typetid 1 = page view tag tid 2 = registration tag tid 3 = order info tag tid 4 = shop tag (combine with action 5 for shopping cart tag, combine with action 9 for order receipt tag) tid 5 = product view tag tid 6 = technical properties tag tid 7 = custom details tag tid 8 = link click tag (for real estate/ site promotions click tracking) tid 9 = link impressions tag (for cm_sp impression tagging) tid 10 = form action tag (auto-generated for forms) tid 14 = conversion event tag tid 15 = element tag tid 404 = error tag
category. This needs to match an entry in the Category Definition File (CDF) Random # (not sure what its used for) Boolean answering is this a page view? Javascript version Technical browser properties Boolean answering is Java enabled? Screen width Screen height Color depth Time zone Not sure
As you can see, this was a Technical Properties Tag, triggered since it was the first page of the visit. The standard Page View tag and Product View tags would look very similar. If we next add a product to cart, a Shopping Cart Tag (aka Shop Action 5 tag) fires and HttpFox displays the following:
Parameter
Description
pr
product number
pm
product name
qt
quantity
bp
base price
cg
product category
at
rf
referring URL
Besides these, you will come across Order Tags, Registration Tags, Element Tags, Conversion Event Tags, and Error Tags (deprecated since 2010, but you may see them in older implementations). Each of these will contain slightly different parameters (and a lot of overlap) but the basic method of viewing them is the same. Just for completeness, here are the remaining parameters youre most likely to come across:
Parameter Description
eid
element ID
ecat
element category
hr
href (look here to check cm_sp site promotions and cm_re real estate tagging)
cid
conversion event ID
ccid
pr_a1pr_a5
pv_a1pv_a5
extra page view attributes for use in Explore (will not show up in regular reports)
Again, HttpFox will persist all the calls in the top, so you can click around on the pages youre interested in, and then review what was sent. I hope this tutorial helps you understand exactly how to debug Coremetrics when you arent able to use TagBar.
Parameter
Description
ac
not sure
at
bp
base price
c_a1c_a50
cat
cc
currency code
ccid
cd
registration code
cg
ci
Client ID
cid
conversion event ID
cjen
cjsid
JSF session ID
cjuid
JSF user ID
cjvf
cm_mmca1cm_mmca50
cm_re
cm_sp
cpt
ct
billing city
cx1cx15
cy
billing country
e_a1e_a50
ec
ecat
element category
eid
element ID
em
email address
fi
form inputs
fo
ha1
not sure
hr
href
je
jv
Javascript version
lp
landing page
nm
not sure
np015
o_a1o_a50
on
order number
or11
osk
order SKU
pc
pd
Color depth
pflg
pi
pm
product name
pr
product number
pr_a1pr_a50
pv_a1pv_a50
qt
quantity
rf
referring URL
rg1rg50
rnd
rs
not sure
s_a1s_a50
sa
billing state
se
sg
shipping
sh
Screen height
sr
# of search results
st
sw
Screen width
sx11
ti
not sure
tid
Tag ID/type:
tid 4 = shop tag (+action 5 =shopping cart tag, +action 9 = order receipt tag)
tid 8 = link click tag (for real estate/ site promotions click tracking)
tr
total revenue
tz
Time zone
ul
vn1
vn2
zp
not sure