Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

use injected $ga instead of window.ga#49

Open
AliRezaBeitari wants to merge 1 commit intonuxt-community:masterfrom
AliRezaBeitari:master
Open

use injected $ga instead of window.ga#49
AliRezaBeitari wants to merge 1 commit intonuxt-community:masterfrom
AliRezaBeitari:master

Conversation

@AliRezaBeitari
Copy link

Use the injected ctx.$ga handler from @nuxtjs/google-analytics instead of window.ga package if it is available.

I myself had some difficulties with the new version of @nuxtjs/google-analytics package which window.ga was not available in the googleOptimize function; but after using the injected $ga handler, it was working fine.

Use the injected `ctx.$ga` handler from `@nuxtjs/google-analytics` instead of `window.ga` package if it is available.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments