beyonk-group / svelte-google-analytics

Google Analytics component for Svelte
77 stars 12 forks source link

Ability to set UserID #11

Closed ai-slave closed 2 years ago

ai-slave commented 2 years ago

Really needed that for my project :)

antony commented 2 years ago

Hey there,

Thanks for this - the only issue is that you've edited a file called generated-functions.js which is a generated file. You have to add this function in the source so that it gets generated automatically :)

dextermb commented 2 years ago

I don't think this would have ever worked as looking at the third parameter going into the queue would be id whereas it is expecting data.

dextermb commented 2 years ago

Implemented under #26. Although it will need testing as I just transplanted what was in this PR.