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

Library full of bugs #31

Open
simplenotezy opened this issue Apr 22, 2020 · 2 comments
Open

Library full of bugs #31

simplenotezy opened this issue Apr 22, 2020 · 2 comments

Comments

@simplenotezy
Copy link

I have setup using basic configuration with debug: true.

If I fire:

this.$gtag('event', 'your_event', {
	testing: 123
});

Nothing happens.

If I run below script first, then it works

this.$gtag('config', 'GTM-MY-ID', {
	page_title: 'test',
	page_path: 'testing'
});

Which is pretty weird, because config should've already been run using the basic configuration options.

Also documentation states several places that the "UA" ID is needed, but it is indeed the "GTM" id that should be provided.

The documentation also references this code:

		this.$gtag('config', 'UA-XXXX-XXX', {
			page_title: this.$metaInfo.title,
			page_path: this.$route.fullPath
		});

However, it does not work - you can't use this.$metaInfo.title since $metaInfo will be undefined.

@simplenotezy
Copy link
Author

Forgot to mention:

when I use:

this.$gtag('event', 'your_event', {
	testing: 123
});

I see "your_event" in the Network tab, but I don't see the associated data (e.g. testing.123). I do see it correctly in the "dataLayer" though.

@PipocaZalas
Copy link

#34 (comment)

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

2 participants