Guidance on tracking time user have watched video stream using google analytics - google-analytics

I am building a site where admin will stream their desktop screen using WebRTC and site users have a button which they press and stream starts and they can view the video stream.
I want to use google analytics to track following but no idea what the best way is to approach the requirements
Note: Each site user may be a direct or via referral site.
What we want to track is:
1) How long each user have viewed the video over a timeframe 1 day, 7 day etc?
2) Users need to be tagged as per their referral
3) How long stream was watched by users of each referral.
Idea behind this so that we can contact each referral and show them their users are being active and they can advertise their products to them.

Related

How to set up conversion tracking to optimize campaigns for approved user?

I'm trying to finish my analytics setup and I've got a bit confused what is the best way forward. The end goal is to have tracking setup that enables me to optimize my Google and Facebook campaigns towards approved users instead of just signed up users. Our product has the following funnel:
User visits our website
He signs up for our product using website lead form (at this moment I have user's email, name, phone number etc.)
Based on our evaluation (that can take hours or days) the user is approved or disapproved in our CRM
I want to provide the advertising systems (mainly Google Ads and Facebook Ads) with an information when the user was approved with all the required ids so the system can trace the event back to the ad the user clicked.
I have the following analytical stack that I am working with:
Website GTM container
Server GTM container (GA4+ UA clients, GA4 + UA + FCAPI tags)
Facebook Conversion API implemented in sGTM
What would be the best way in your opinion to implement the tracking of the event that is fired from our CRM when user is approved? I was thinking about using Measurement Protocol to send the event to sGTM/GA4 or Enhanced conversions for leads for Google Ads but neither solutions seems to fit 100 % to my scenario. What would you recommend? Thank you for any inputs.
GA4 Measurement Protocol or Google Ads API and Facebook Ads APIs are the right way to go.
You'll have to store click & user identifiers ad platforms use (fbclid, fbp, gclid/_ga etc) and then pass them to Google Ads (either through GA4 measurement protocol and GA4-GAds connection or directly to Google Ads API) and Facebook CAPI together with the conversion. There are services like Able CDP that do the entire process - recording ids, getting conversions from CRM, sending them to APIs.
Doing it with sGTM or something like Zapier alone would be significantly limited. They don't remember what click ids, IP address, browser etc the user had when signing up and only around half of the conversions without click/user ids recorded at a lead form submission and sent together with the conversion will be attributed typically (the ones for which ad platforms recognise the users' emails).

What does "Activity Time" mean?

I'm trying to get Google Analytics Reporting API on Json.
I got the data correctly but cannot understand the meaning of the columns.
What does "Activity Time" mean?
Is it the time user access the webpage?
Activity is the number of minutes that you have been active throughout the day.
Active users are those who have sent a hit to Analytics within the last five minutes. Active users per page is the number of users who have sent their most recent hit from that page.
It also shows the referrals for active users and the pages through which these users entered your site and their geographic locations.
Ways to use Real-Time
With Real-Time, you can immediately and continuously monitor the effects that new campaigns and site changes have on your traffic. Here are a few of the ways you might use Real-Time:
monitor whether new and changed content on your site is being viewed
understand usage of your mobile app through event tracking
see whether a one-day promotion is driving traffic to your site or app, and which pages these users are viewing
monitor the immediate effects on traffic from a blog/social network post or tweet
verify that the tracking code is working on your site or app
monitor goal completions as you test changes to your site

How to let know to Google Analytics that my user is still online?

We have a dashboard application that shows some realtime data. Usually use case is that user open some dashboard and let it opened several hours and looks at it during the time. Data on the dashboard are updated on the background. Google Analytics doesn't know that the dashboard page is still opened and results about realtime online users in GA are bad.
How to let know to Google Analytics that the user is still online?
I think about using GA events, but I do not know if it is the best way.
You can know it with a margin of 5 minutes:
Active users are those who have sent a hit to Analytics within the last five minutes.
Active users per page is the number of users who have sent their most recent hit from that page.
https://support.google.com/analytics/answer/1638637?hl=en

Google Analytics and Instagram

Why do I have website traffic coming from Instagram in my analytics when I don't have an Instagram account?
image of analytics report
You don't need to have social accounts to get traffic from those sources.
This could be anything from someone linking to your site from their own Instagram account to a bot hiding behind an Instagram referrer. Use other reports and dimensions to find some context to that info (such as Hostname, Landing Page, Bounce Rate) and/or even a segment to determine what else the user did.
It may not illuminate much since there was only 1 acquisition from Instagram (especially if they bounced).

Recording email opens as event

For I while I'm using img tag for tracking email opens. But now i see that every time after sending a email on a second day i have no opens. Last time - i opened my email on second day and i saw it in real time. After that i watched event report and again - 0 events for second day. Maybe You know - what can be a problem?
< img src="http://www.google-analytics.com/collect?v=1&tid=XX-XXXXXXX-X&cid=reciepient_id&t=event&ec=email&ea=open&el=LabelName" >
Ilze
Maybe the image is cached, since it's not downloaded again you won't see it in GA. That's just one of the reasons what you are doing is a terrible idea.
The biggest reason would be because Gmail will cache images for users. So if you send this email to say 100 users, google will cache download the image once and serve to all users. So you'll see a single hit no matter how many users (or no users) open your email.
More info: http://gmailblog.blogspot.com/2013/12/images-now-showing.html
Google Analytics is not a good tool for mail tracking.

Resources