Closed jfanals closed 4 years ago
I would try to bootstrap the plug-in like this
https://matteo-gabriele.gitbook.io/vue-gtag/custom-installation#bootstrap-later
And make sure to read the section after this one in case u need to pass something from the API call
I am looking for a way to initialize VueGtag with the response of an API call.
I have tried setting it with a function/promise as the vue-analytics plugin but it is not working... https://github.com/MatteoGabriele/vue-analytics/blob/master/docs/installation.md#use-functions-orand-promises
The solution that seems to be working is to initialize the VueGtag after the API response
I am not sure this is the best way. Do you have any other suggestions?
Thank you