Skip to main content
All CollectionsEcommerce IntegrationsMagento
Magento: Tracking Script & Profile Merge
Magento: Tracking Script & Profile Merge
Rikke Søndergaard avatar
Written by Rikke Søndergaard
Updated over a year ago

Magento: Tracking Script & Profile Merge


In this Article


The Tracking script

About the tracking script

Enabling the Tracking Script in your Magento integration will allow you to collect website data from your Magento store and feed it into APSIS One.

Enrich Profiles in APSIS One with website data such as page views, site searches, UTM tags, page referrals, Facebook ads referral, file downloads and product views. Learn more about the Tracking script and check out the full list og tracked events here.

Mention unknown profiles here

Profile merge: how is data placed on the right Profiles?

Once the script is installed on your website, Unknown Profiles are automatically created in APSIS One based on the cookie ID. (Ely_vID: Profile ID)

Visitors associated with your Magento account that are not synced with APSIS One are identified via their Cookie ID.

Magento Subscribers/Customers are synced with Unknown Profiles thanks to the Cookie ID, and (WHEN - what action) a Known Profile is created with both the Magento profile data and email address as an Email Attribute in APSIS One.

Both Known and Unknown Profiles are updated with their browsing behaviour in APSIS One.

Note: Unknown Profiles are created as visitors browse through your website, and a Profile that has been identified previously might not be identified in all of their future browsing instances.

In example, if a visitor clears their cookies or visits from a new device, they will remain unidentified until a merge happens with a consent-related activity(Benjamin wording - change).


Enable the Tracking script

Enabling the Tracking Script in the Magento integration will allow you to gather data from your Magento Store and feed it into Profiles.

1. In APSIS One, click on the User icon in the top right menu and select Settings.

2. Select the Section you want to work with.

2. Expand the Domains & Languages menu and select Tracking Script.

3. This is your tracking script. Click Copy tracking script to save the script.

4. To connect the tracking script to your own cookie banner click Run Tracking Script Independently and enter the Cookie name and value.

Note: If this option is enabled, the request for consent relies completely on your existing cookie banner. which must make sure that the data fed into APSIS One is gathered with consent.

In order to collect and store visitor's data you must acquire informed consent, which is provided by visitors through a cookie banner. Consult your legal team before enabling this feature to make sure that you have an existing solution for acquiring visitors' informed consent.

You may choose to add multiple conditions for when the tracking script can be run. To add more conditions, click on Add cookie. The script will be run if any one of the listed conditions apply.

More about cookies

All cookies are set by the JavaScript code on your domain, which means all cookies tracked with APSIS One are first-party cookies. Here's the cookies APSIS One collects according to storage:

Cloud storage

  • Ely_vID: Profile ID.

  • ely_cc_answ: Cookie consent.

  • elytil: Whether the visitor is a first time visitor or not. Appears only once per Profile.

  • elytis: Whether it's a new browser session. Appears once per browser session.

  • cookie-banner-session, capture-bar-session-<hash>: Cookies that help monitor the status of Sign-up bar and Cookie banner activities.

Local storage

  • apsis-cookie-banner-variable: Shows the correct status of the Cookie banner.

  • pcdc: The service structure for the Events being sent to Audience.

Temporary cookies

  • apsis-cookie-test: APSIS One generates one temporary cookie per page in order to check whether the tracking script is able to store cookies on the visitor's browser. The test cookie will be deleted immediately after.

5. In Magento, click on Stores, then select Configuration and find the APSIS One plugin.

6. In the plugin's last step, Configurations, paste the tracking script.

That's it! Now your tracking script is installed and you can begin collecting browsing data from your website's visitors.


What's Next?

Did this answer your question?