Analytics/Tracking
* drag the tracking object a decade into the future
This commit is contained in:
parent
a90d1d242a
commit
92f949b3c6
14 changed files with 293 additions and 166 deletions
|
|
@ -1088,15 +1088,20 @@ function fi_setCriteria(cr, crs, crv) {
|
|||
|
||||
var
|
||||
i,
|
||||
c = _.childNodes[0].childNodes[0];
|
||||
c = _.childNodes[0].childNodes[0],
|
||||
s;
|
||||
|
||||
_ = c.getElementsByTagName('option');
|
||||
for (i = 0; i < _.length; ++i) {
|
||||
if (_[i].value == cr[0]) {
|
||||
_[i].selected = true;
|
||||
|
||||
if (fi_Lookup(cr[0])) {
|
||||
g_trackEvent('Filters', fi_type, fi_Lookup(cr[0]).name);
|
||||
if (s = fi_Lookup(cr[0])) {
|
||||
$WH.Track.nonInteractiveEvent({
|
||||
category: "Filters",
|
||||
action: fi_type, // vars.page,
|
||||
label: s.name
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -1108,8 +1113,12 @@ function fi_setCriteria(cr, crs, crv) {
|
|||
for (i = 1; i < cr.length && i < 5; ++i) {
|
||||
fi_criterionChange(fi_addCriterion(a, cr[i]), crs[i], crv[i]);
|
||||
|
||||
if (fi_Lookup(cr[i])) {
|
||||
g_trackEvent('Filters', fi_type, fi_Lookup(cr[i]).name);
|
||||
if (s = fi_Lookup(cr[i])) {
|
||||
$WH.Track.nonInteractiveEvent({
|
||||
category: "Filters",
|
||||
action: fi_type, // vars.page,
|
||||
label: s.name
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ $(document).ready(function () {
|
|||
$('.home-featuredbox-links a').hover(
|
||||
function () { $(this).next('var').addClass('active') },
|
||||
function () { $(this).next('var').removeClass('active') }
|
||||
).click(function () { g_trackEvent('Featured Box', 'Click', this.title) }
|
||||
).each( function () { g_trackEvent('Featured Box', 'Impression', this.title) }
|
||||
)
|
||||
).click(function () { $WH.Track.interactiveEvent({category: 'Featured Box', action: 'Click', label: this.title}) }
|
||||
).each( function () { $WH.Track.nonInteractiveEvent({category: 'Featured Box', action: 'Show', label: this.title}) }
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue