Definition of events

Counter events: The most common type of event. They can only be defined in the s.events variable. Counter events can have an assigned positive integer value if the code version is H23.2 or higher. These events are often used to measure success or conversion.

Incrementor events: Used when passing in values greater than one is desired. Versions H23.2 and later provide little use for incrementor events unless decimal numbers are desired.

Currency events: Used for passing monetary values; acts similarly to an extra revenue metric in reporting. Currency events use currency conversion, whereas incrementor events do not. Currency events are useful to track more currency metrics, such as tax, shipping cost, or gift card revenue.

Implementation examples

// A simple counter event that increments by 1:
s.events="event1";

// A counter event that counts multiple instances:
s.events="event2=5";

// An incrementor event can be implemented one of two ways.
// Method 1:
s.products=";;;;event5=6.75";
// Method 2:
s.events="event5=6.75";

// A currency event can be implemented one of two ways:
// Method 1:
s.products=";;;;event6=4.99";
//Method 2:
s.events="event6=4.99";

הערה:

If a product-specific event is triggered using the products variable, then that event must be set with the events variable. If this method is not used, the event is filtered out during processing. For more information, reference the documentation links below:

עבודה זו בוצעה ברישיון של Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  הודעות המתפרסמות ב- Twitter™‎ ו- Facebook אינן מכוסות בתנאי Creative Commons.

הצהרות משפטיות   |   מדיניות פרטיות מקוונת