简体   繁体   中英

Track google analytics code

I am trying to link my local data to Google's Analytic data. For example, if I add java script code that maps the click of my register button on my website. I would like to get the id/result of that insertion. I would then like to save this id along with my user object. This way I could map my registration events to my users and in the future analyze this data.

Is this possible? If so any ideas how it would be done? I have had a look at the api docs and my first thought was that the function ga() should return something, I do not believe that it does? My next thought was that I could post an id or data to Google that I post to my server on user creation.

Any ideas or suggestions would be more than appreciated!

Thanks.

也许您要进行网络跟踪

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM