*Google Tag Manager (server-side)

Overview

This guide assumes a specific SGTM configuration. If your setup differs from the example provided, contact support@symbiosys.ai for assistance with event logging. The assumed configuration is detailed below.

Instructions

This guide assumes a frontend with a web container tag of type "Google Tag" that sends data to a GTM server container. The server container has a client of type "Google Analytics: GA4" installed. It also applies to setups with or without a server-side tag forwarding events to Google Analytics or another event server. The guide is compatible with frontends using either GTM or gtag.js.


AD_4nXeg8ug7VYet4gTIpj5Y6CWKks_pBJx0OPpLx_YcuWhT_EMFzdYKwRncFDkA3SbW2ZQ_3b4dc9V9oF-k65Dq_2R0JnO0BQMtgLzP6QA29wax1a4dUg7BuiVH6ppsMLGi1fG5DYTrB5eBxnZUTDFsFF5MZ-2B?key=u0dB5VLL4Xiscryd78jAoA
Existing Google tag on frontend


AD_4nXdHsIQrnavyoGgEQXtNLXKwpC0fFRMcAP5EtRvTyaTIGkTSOCck0AbD3UURPsL6nhsErhjHoYGZo89tzwI2tYPyiRsh-UgkEEVCTPvf0d2gMxXQX3yCXmiOjFk5t7lIovvEk4nnDiTGjYgV6i_WYWb2M0E?key=u0dB5VLL4Xiscryd78jAoA
Installed GA4 client that receives data from the frontend.


If your setup does not have these components already (or the gtag.js installed), contact support@symbiosys.ai.

Set up attribution fields

To ensure proper attribution, we need to link visits to orders using custom fields as outlined below.

1. Product ID field

In Google Analytics, set up a custom field for the current product ID, named “product_id.” The method is client-specific; for example, you could use custom JavaScript in GA4 to extract the product ID from the URL.

2. CRM User ID field

We use several user identifiers for attribution, most provided by Google Analytics. However, please include the CRM User ID for logged-in users in every event, using the field name “user_id.”

Tag Installation

All changes should be made in Google Tag Manager. Ensure that the Tag Manager account you are working inside has a Container Type of “Server“, not “Web“.

  1. In Tag Manager, go to Overview > New Tag > Tag Configuration > Community Template Gallery.

  2. Search “Symbiosys Event API“.

  3. Select the Symbiosys Event API tag and add it to your workspace.

  4. Select the tag.

  5. Enter your Symbiosys-provided API key.

    1. Ensure that you are using the correct key per the environment (dev or prod).

  6. Click the Triggering tile

  7. Select All Pages and click Add.

  8. Save changes.

image-20241211-170527.png

Validation

Validate that the correct data is being sent. After completing the integration, contact your Symbiosys Sales Engineer for data validation checks.