Call types
Once you have integrated the Eulerian JavaScript as explained in Standard Eulerian tags, you can trigger the EA_push function. Its call format is as follows:
EA_push(_CALLTYPE_, [_ARRAY_PARAMS_]);
The sections below give the values _CALLTYPE_ can take.
collector (or empty)
The default call is collector, which makes these two calls identical:
EA_push("collector", [_ARRAY_PARAMS]);
EA_push([_ARRAY_PARAMS]);
The collector call handles:
- acquiring the consent collected
- the output of the tag management system
- the output of the Server-Server connector management system
- the cascade to other call types internally (on the Eulerian server side), transparently
The collector handles the cascade to these call types:
- tag: fired by default, with no particular parameter
- action: when
actionnameis present - panier: when
scartis present - order: when
refandamountare present - estimate: when
estimateis present - event: when an event parameter is present
- nc: when
newcustomeris present, of whichncis the no-script alias
These call types are not invoked directly: the collector cascades to them when it receives the matching parameter. The name, format and expected value of each one are described in the native parameters of the web collector.
action
Direct call to one or more actions.
EA_push("action", ["actionname", "form_subscribe1", "actionmode", "out"]);
See also: Action tags and conversion tracking.
actionparam
Direct call that adds a key/value parameter to an action in progress.
EA_push("actionparam", ["actionname", "mon_action_in_deja_ouverte", "actionpname", "param1", "actionpvalue", "value1"]);
See also: Action tags and conversion tracking.
onload
A functional call on the client side, which generates no call to Eulerian. It lets you run JavaScript when the Eulerian JavaScript loads.
EA_push("onload", [function () { console.log("EA js is loaded"); }]);
ondone
A functional call on the client side, which generates no call to Eulerian. It asks for the supplied JavaScript to run when the collector’s “interpreted” response comes back, so after consent and possibly after third-party tags.
EA_push("ondone", [function () { console.log("EA collector done"); }]);
link / event / button / download (deprecated)
These separate call types track simple events.
EA_push("link", [_NAME_]);
EA_push("event", [_NAME_]);
EA_push("button", [_NAME_]);
EA_push("download", [_NAME_]);
See also: Collecting events.
Products: link / event / button / download (deprecated)
These separate call types track simple events on products.
EA_push("productlink", [_PRODUCT_REF_, _NAME_]);
EA_push("productevent", [_PRODUCT_REF_, _NAME_]);
EA_push("productbutton", [_PRODUCT_REF_, _NAME_]);
EA_push("productdownload", [_PRODUCT_REF_, _NAME_]);
See also: Collecting events.