To be able to verify that the Symplify events are pushed you need to browse the website as a normal visitor. This is easiest done by using the incognito mode in the browser. This way you won't have any previous cookies/cache set.
Notice! You won't be able to check this if you are in Editor or Preview mode or if you have any cookies set by any of those. This is why we recommend testing this in incognito mode. You also need an active A/B test to be able to check this as the event is only pushed for active projects. The event is also only pushed the first time Audience is true for the project. This is to prevent spamming Google analytics with events.
Privacy level / consent
If you have any of the privacy modes (not default), that requires consent before tracking the visitor, the event won't fire before the optIn callback is called.
GA4 implemented via GTM
If you are adding GA4 via GTM you need to set up GTM to collect the Symplify events. Once that is done you can test your setup by checking that you get the collect requests that contains the Symplify event in your network tab in the browser's development tools.
The easiest way to do this is by creating a new empty A/B test. The test should not have any Audience settings and no variation changes. When this is done activate the project to be able to test if the Symplify events are collected correctly.
1. Check for the event in data layer
After the test has been activated you can open an inkognito browser (to make sure you have no previous cookies for this test). Then open up the browser's dev tools (Mac: Option+Command+i, Windows: F12 or Ctrl+Shift+i) and keep that open. Now enter the website's url and then check the dataLayer array in the console to make sure you've got the project and the event is pushed. This is done by clicking the Console tab in dev tools and then type dataLayer and hit Enter. You should get an array with items in it (see image below). Click the little arrow to expand it and make sure that the Symplify event for your A/B test is listed.
Notice! If the Event is not listed then check that you have been allocated the project by typing symplify.getActivatedProjects(); in the console and check if you got the project in the listing. If not, then make sure your project is activated and then reload the page and check again.
2. Check the collect request
After you've made sure you got the event in the data layer you need to make sure that GTM has collected this and passed it through to GA4. In dev tools click the Network tab and type collect in the filter input. This will filter on requests that contains the word collect (which GA requests does). Now check the collect requests for the one with the Symplify event in the payload tab (see image)
Notice! The data layer item and collect request will happen at the same time so this needs to be checked on the same page load. This will also just happen the first time the visitor get Audience true for that project so if you've missed it then you need to close the inkognito window and start over. You can also remove the cookies that starts with sg_ to "reset" the script.
GA4 implemented via GTAG
If you have implemented GA4 via GTAG the Symplify script will try to push the events automatically. You should see the event in the data layer when this happens.
The easiest way to check that this is working is by creating a new empty A/B test and activate it. The test should not have any Audience settings and no variation changes.
1. Check for the event in data layer
After the test has been activated you can open an inkognito browser (to make sure you have no previous cookies for this test). Then open up the browser's dev tools (Mac: Option+Command+i, Windows: F12 or Ctrl+Shift+i) and keep that open. Now enter the website's url and then check the dataLayer array in the console to make sure you've got the project and the event is pushed. You can check this by clicking the Console tab in dev tools and then type dataLayer and hit Enter. You should get an array with items in it (see image below). Click the little arrow to expand it and make sure that the Symplify event for your A/B test is listed.
Notice! If the Event is not listed then check that you have been allocated the project by typing symplify.getActivatedProjects(); in the console and check if you got the project in the listing. If not, then make sure your project is activated and then reload the page and check again.
2. Check the collect request
After you've made sure you got the event in the data layer you need to make sure that the event is passed through to GA4. In dev tools click the Network tab and type collect in the filter input. This will filter on requests that contains the word collect (which GA requests does). Now check the collect requests for the one with the Symplify event in the payload tab (see image)
Notice! The data layer item and collect request will happen at the same time so this needs to be checked on the same page load. This will also just happen the first time the visitor get Audience true for that project so if you've missed it then you need to close the inkognito window and start over. You can also remove the cookies that starts with sg_ to "reset" the script.