google-optimize-module
google-optimize-module copied to clipboard
use injected `$ga` instead of `window.ga`
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.