• Matomo - Integration via Matomo Tag Manager

    Table of contents

    In short

    In this guide, we will show you how to set up the Matomo Tag Manager so that Matomo can collect and analyze the data from Varify.io. To do this, it is necessary to integrate the Matomo Tag Manager into your website.

    Important: Matomo can currently only analyze one experiment at a time. This means that only one of your experiments may be active. All other experiments must either be paused or not yet started, otherwise the data cannot be analyzed correctly.

    We are already working on a way to analyze several experiments at the same time.

    Set analytics connection

    Before you start in your Google Tag Manager, you should first define the appropriate settings for your integration in the dashboard under A/B Testing Options -> "Go to Tracking Setup".

    Select "Matomo" under "Analytics Connection" and confirm with "Update" 

    Setting up the Varify.io <> Matomo integration

    1. create a DataLayer variable

    First, a DataLayer variable is created. This will later contain the information of the experiment.

    1. Navigate to the "Variables" section and create a new variable by clicking on the green "Create new variable" button.
    2. Select the "Data layer" option.
    3. Name the variable as "Varify.io - abTestShort".
    4. Under "Data layer variable name", enter the value "varify_abTestShort" (please write exactly like this).
    5. Save the data layer variable by clicking on "Create new variable".

    2. Create a trigger

    The next step is to create a trigger. This ensures that the tag is triggered when an experiment is played on a page.

    1. Navigate to the "Triggers" section and create a new trigger by clicking on the green "Create new trigger" button.
    2. Select the "Custom event" option at the bottom of the "Other" section.
    3. Name this trigger "Varify.io - Event".
    4. In the "Event name" field, enter "varify" (please write exactly like this).
    5. Save the trigger by clicking on "Create new trigger".

    3. create an MTM tag

    Finally, a Matomo Analytics tag is created. When this is triggered, it sends an event to Matomo together with the variable value of the previously created DataLayer variable.

    1. Go to the "Tags" section and create a new tag by clicking on the green "Create new tag" button.
    2. Select the option "Matomo Analytics".
    3. Name this tag "Varify.io - Tracking Linker".
    4. In the "Configure what this tag should do" section, you must select your Matomo configuration in the dropdown. If this does not yet exist, click on "+ Create new variable" below. A window will appear where you can create this Matomo configuration variable. Scroll down and click on the green "Create new variable" button.
    5. Then select the "Event" tracking type.
    6. Enter "varify" for the event category.
    7. For event action, enter "abTest".
    8. For event name enter "{{Varify.io - abTestShort}}" (you can also click on the icon on the right and select the variable).
    9. In the "Configure when the tag should do this" section, select the "Varify.io - Event" trigger via the dropdown.
    10. Save the tag by clicking on "Create new tag".

    4. publish the customization on the Matomo Tag Manager

    Once you have created everything, you can go live with the version you have just created under the "Publish" tab. As soon as an experiment has been started, a corresponding event with the corresponding parameters should be sent to Matomo.

    Check your tracking integration

    To check that the integration is correct, we recommend using a A/A test to be carried out. If everything is set up correctly, you should see the following in your dashboard, as shown in the screenshot below:

    • The live view shows triggered events for users.
    • When the event is passed over, "varify - abTest - 1234:1234" or "1234:Original" is displayed (1234 stands for the experiment ID).

    Evaluation of the experiments in Matomo

    Now that you have correctly linked Matomo and Varify.io, you can analyze your experiments. To do this, you need to create corresponding segments. You can find detailed instructions on how to do this here: Matomo - Results analysis

  • First steps

    Tracking & Evaluation

    Targeting

    Advanced

    Function overview