Skip to main content

Custom development / unsupported shop system

In order for Shoplytics to capture ecommerce events in your shop (e.g. view_item, add_to_cart, purchase), the so-called ecommerce data layer is required, which provides information such as product IDs, product categories, prices, revenue, and much more.

For this, there is the "Google Analytics Standard" which Shoplytics follows. For most shop systems, there are plugins to easily activate a Google ecommerce data layer. If there isn't one for your system, or if your shop is custom-coded, your developer will need to build an ecommerce data layer.

Alternatively, you can use the Shoplytics Datalayer Service. In that case, your developer doesn't need to get involved, and we take care of this step for you. It is a data layer script that we program individually for your shop and load directly via Shoplytics. Then both run through the same script: data layer and tracking.

Shoplytics Datalayer Service

We take care of programming the data layer for you. Simply book via the following link: https://www.checkout-ds24.com/product/592227/


Instructions for your developer on how to easily program the data layer

  1. Programming the "DataLayer" and populating it with "Enhanced E-Commerce Data" according to Google's own documentation (You can find the link to the full Google documentation and all possible events at the end of this document.):
    1. You can limit yourself here to the following four events/page views: (Steps 1 through 4 are "mandatory" to start ecommerce tracking)
      1. Viewing a product page (Documentation: "view_item")
      2. Adding/removing a product from the shopping cart (Documentation: add_to_cart, or: remove_from_cart)
      3. Entering the checkout: begin_checkout
      4. Transmission of successfully completed purchases (on the "Thank You page" after the purchase) (See purchase in the Google docs)
  2. Please observe the "required" parameters in each of the data layer pushes in the original Google documentation (links below):
    1. the respective event name (e.g. "view_item" or "purchase")
    2. items > item_name & item_id
    3. currency
    4. value

If you have any questions about the programming, feel free to contact us anytime at:

support@shoplytics.de

Google's documentation on the individual events:

Please have your developer team implement it exactly this way.

(Also see the mandatory parameters in the ecommerce and items objects.)

At minimum, the events: view_item, add_to_cart and purchase are necessary.

It would be better to have all of the following events...


add_payment_info:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#add_payment_info

add_shipping_info:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#add_shipping_info

add_to_cart:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#add_to_cart

begin_checkout:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#begin_checkout

view_item:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#view_item

view_item_list:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#view_item_list

purchase:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#purchase

remove_from_cart:

https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtm#remove_from_cart