google-optimize-module icon indicating copy to clipboard operation
google-optimize-module copied to clipboard

use injected `$ga` instead of `window.ga`

Open AliRezaBeitari opened this issue 3 years ago • 0 comments

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.

AliRezaBeitari avatar May 23 '21 13:05 AliRezaBeitari