amplitude / GTM-Web-Demo

Web demo app for Google Tag Manager + Amplitude integration
19 stars 9 forks source link

cant set userID for some reason. #1

Open jasan-s opened 6 years ago

jasan-s commented 6 years ago

using the following I can successfully set user properties: <script>amplitude.getInstance().setUserProperties({{userProperties}});</script> however I cant seem to be able to set userId using the code below: <script>amplitude.getInstance().setUserId('{{userId}}');</script>

The userId remains the generic assigned by amplitude