Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use A/B-Testing with nuxt-matomo #30

Open
iparker opened this issue Feb 8, 2022 · 0 comments
Open

Use A/B-Testing with nuxt-matomo #30

iparker opened this issue Feb 8, 2022 · 0 comments

Comments

@iparker
Copy link

iparker commented Feb 8, 2022

Hello,

is there a way to use the matomo a/b-testing feature (https://developer.matomo.org/guides/ab-tests/browser) with nuxt-matomo?

I tried to use something like

const _paq = (window._paq = window._paq || []);
_paq.push([
  'AbTesting::create',
  {

but it ends in an error like this:

_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.

Any ideas how to create an a/b-test with matomo in nuxt?

Best regards,

Timo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant