AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4.3K members online now
4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Google Analytics implementation in Chrome extension

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, I have a problem implementing Google Analytics code into my Chrome extension. Can anyone tell me how to implement it so that it shows extensions active time, and not only when someone opens the extension?

Re: Google Analytics implementation in Chrome extension

Explorer ✭ ☆ ☆
# 2
Explorer ✭ ☆ ☆
Hi Nemanja
I did a similar thing when I tracked our extension:
I would look to use measurement protocol :

to track the extension. It gives you very granular control when you can start and finish a session. See the documentation I shared above.
also use the user id to help you establish user tracking which will give you even more info