Custom Report in Google Analytics - google-analytics

I am new to Google Analytics.I want to create custom report which should look like this What will be my custom metrics and custom dimensions and what changes i need to do in my tracking code to generate such kind of report.

I second faridghar answer. However, to get a straight response to your question I will suggest creating a custom report and using other tools to accomplish what you want to achieve. Simply follow this youtube video steps. It will explain everything except the email ID issue, you can still follow their instructions to implement a similar solution as they did with the user's names.

It is forbidden to collect personally identifiable information (PII) in Google Analytics. In your example, "Client Name", "Email ID" and "Address" are all PII. Therefore, while it may be technically possible to achieve this, you would be violating Google Analytics policy. More info here.
One way around this would be to hash the data before you send it to GA. This would only really make sense for the email field as your other fields are probably not unique.

Related

Problem tracking outbound links using TagManager

Hope somebody can help me.
I'm a newby and have a website, using Google Analytics.
I now want to track outbound links from my website to a third party website.
Based on what I found on internet, I have set up tag manager, sas you can see here:
https://saskiahermans.nl/wp-content/uploads/2022/11/TagManager.docx
However, after a few days I can't find any outbound clicks back in Google Analytics, where I'm sure there have been some.
What am I doing wrong? Can anybody please help?
Ok, after debugging it in comments and looking at the actual tracking, here what is sent to GA4 on outbound clicks on the site in question:
en: "click",
ep.link_id: "",
ep.link_classes: "",
ep.link_url: <URL>,
ep.link_domain: <domain>,
ep.outbound: "true",
Well this is plenty.
Now go to your GA4 property, Admin -> Custom Definitions (under the Property) -> Make sure your eps (event parameters) are registered as custom dimensions. Like so:
You probably want to do that for the ep.outbound and ep.link_domain. Don't do it for the link_url. Url can be too high-cardinality for GA4 to handle.
After you're done with defining custom dimensions, give it time to gather data and filter into the custom dimensions (about a day) and go to your Explorer, click the + sign in Dimensions and add your custom dimensions to the list. Now just pull the dimensions and metrics you're interested in into the report and they all should be good.
If you still don't see the dimensions filled, make sure your measurement id in the tracking tid: "G-V24L72RLMM" is the same as in the Admin -> Data Streams. It's a popular mistake when people send data in a wrong analytics property.

Firebase Dynamic Link Click Count

We are planning to integrated firebase dynamic link to track content sharing and referrals in our app.
Firebase provides analytics data for how many times a user clicked on a url as mentioned here.
Since we are going to generate these links programmatically for referrals, is there any way to do a more granular tracking ?
Like if I want to see how many times all the links generated were clicked.
Or something like how many times a link with a particular parameter was clicked.
I tried looking through firebase docs but I don't think these usecases are covered there.
And if thats correct, what is a better way to track this ?
If you want to collect the analytics data for programmatically created dynamic links, you'll have to use REST API. Though, I also think that you can use BigQuery but I haven't tried this before. Collecting the data via Firebase Console is not yet available.

Pulling Google Variable Into Hidden Field

I've started parsing out the Google UTMZ_ cookie and am looking for any possible way to push that information into Marketo hidden fields. I currently create and populate Marketo hidden fields based on Google Tracker fields, but I can't figure out how to do it with the fields in the attached image.
I'm wondering if anyone has any insights into how I could push those fields to a form. Below is the code I use for pushing Google Tracker fields to Marketo.
MktoForms2.whenReady(function(form){
ga(function(){
form.addHiddenFields({
GA_User_ID__c : ga.getByName('gtm1').get('userId')
});
});
});
Universal Analytics does not use utm cookies, and it does not have custom variables (they have been replaced by custom dimensions), so your version of the GA code does not match the information from your screen shot.
Since campaign attribution is now done completely on the Google servers you can no longer get the information via client side GA code. You would either have to pull that information via the API (which I do not think is feasible in runtime) or build your own solution to try and match Google's campaign attribution (as displayed here in a flowchart).

Is it possible to use a "confirm your email" options in google forms?

What I mean is during or after form is complete, send an email to the user to respond so he could confirm the address is a real one.
Not much of an answer, but I've used Google Forms a few times and I don't think I've ever seen that option. You might want to try a different platform (such as Survey Monkey, although I don't know if they offer that feature either) or develop something to do that follow-up for you.
Google Forms does this automatically, you just need to open the form you want to modify go to settings and select the first option that is something like "allow only one answer". Bear in mind that this will require that your respondants to login into the google services, and if they don't have a google account they will need to create one.

Is there anything wrong with the way I'm implementing a Calendar on my site?

I am setting up a website for students of a school, which must include a schedule page which will show a calendar with events populated by feeds from various teachers' calendars. After trying out a variety of scripts and tools made for showing calendars, I finally hit upon a very shoddy, hacked-together way of doing it, and I want to know if theres any specific things wrong with my implementation.
My requirements from this calendar are posted in a previous question
This is how my implementation is gonna work:
The teachers make their schedules in their own calendar programs and make those feeds available in the iCal format. A common Google account for the school subcribes to all these calendars, and so gets read only access to ALL the teacher's schedules in school.
Google Calendar has a feature that lets you select some of your calendars, and then get the html code for an iframe to embed on your website, so that visitors to the site can see what events are coming up. When I experimented around with the options in the Google 'Configurator', I found that by simply including certain codes in the url called for the iframe contents, you could change which calendars were visible. These codes, or calendar ids, are clearly displayed in the settings for each calendar. Thus, my final solution is thus:
For every student, there is a record stating which courses he has taken, and hence which calendars he should be shown. With some SQL magic, I can retrieve the calendar ids from a pre-prepared database of all the calendar ids, and then generate the correct url for the iframe using php, and display it.
I hope that wasn't too convoluted to understand. Now can anyone tell me if there are any inherent security flaws or bad programming practices etc in this. Something about the whole idea of dynamically generating urls, using iframes, using a common google account etc just screams 'Mistake!'. Can someone tell me if this is an ok way to go about it, or is there some problem with it?
Actually, I think your solution has the potential to be very secure. Using a single google account to collect the read-only calendars into one place is just an organizational shortcut. As long as the calendars themselves are read-only, your single account contains nothing that isn't already public.
Generating URLs is perfectly reasonable, as long as you are combining strings that you've sanitized beforehand. Since your database can only get calendar IDs from your aggregation google account, you know that potentially malicious users can't cause arbitrary characters to end up in your synthesized URLs.
The biggest problem you'll probably run into is that the google embedded calendar iframe only allows up to ten calendar feeds.
The most likely security vulnerability you'll face is the security of all of the teachers' google calendars.
By default, google calendars accept "invitations" and post them as events. You might find that anyone can "invite" a teacher's calendar to prank events and those prank events will then show up on student calendars.

Resources