I'm trying to use Google Optimize at the server side in a aspx page. This document says the variant should be selected randomly:
$variationId = rand(0, 2);
Is there way to get the $variationId from the Google Optimize instead of the app selecting randomly? If the traffic is split for two variants, the next $variationId that the app should use should be what Google Optimize provides and not the app provides.
From what I have understood from the documentation here, Is that you need to manually do the targetting yourself. Soo, To answer your question I don't think it's possible to get the $variationId form optimize itself.
Possible Solutions:
Use the google analytics ID stored in the cookie (_ga) to uniquely identify your target audience and use a back-end implementation to keep track of GA ID and split the audience among the original & the variants.
Hope this points you in the right direction
Cheers!
Related
We were checking newly implemented Google Analytics for our mobile app and surprisingly there are a lot of visitors from multiple countries but in actuality, we haven't released our app for any store and it's just beta between 5 main users.
After checking Google Analytics report in details we have found that it got spammed by Bot call "Trumps Bot" when something happens on your account you can see following lines in your language section.
“Secret.ɢoogle.com You are invited! Enter only with this ticket URL. Copy it. Vote for Trump!”
There are a lot of solution available to avoid this data in your reports using the filter but i was just wondering if there is any concrete solution on permanently remove this data from my reports and also is there anything we can do to avoid such data in future as its seriously affecting business strategy.
Due the tecnology used on Google Analytics the only way to eliminate this referal is using a filter, check one common point of all this hits . In this case is a hard one, because all the parameters changes , exept for the language, for a well know reason, to see the spam.
So try to use this one, in my case works
I highly recommend you read the community policy, this can be considered as off-topic question
Analytics spammers are always trying to find new ways of getting attention, and with this one, this spammer hit it big.
It is not possible to permanently remove it unless you delete the whole property. But you can create and advance segment to get a clean view.
But the most important part is blocking it so it doesn't pollutes your data. For this particular type of spam you should create a custom exclude language filter with this expression:
\s[^s]*\s|.{15,}|.|,
That expression will block any hit that doesn't use a proper language. That combined with a valid hostname filter should prevent most of the current spam and save you a lot of headaches.
If you need help, you can check this step by step guide for building these filters and creating the advanced segment to remove it from your historical data.
Here is also a related question.
Login in to Your Google Analytics account
Select ADMIN Section
Click on All Filters -- Add Filters
Give a filter name such as -- Include only website traffic
In Predefined section, select Include Only
for more... Click Here
The need: a combined number of total some metric across two mobile apps and a desktop site. The question: can I implement trackers as needed (SDK and JS) that share a property ID?
My guess: no, as the hit types won't match, and either pageview or screenview hit types won't be processed (based on the property configuration).
Further question: though it won't be possible for this implementation, conceivably I could implement the measurement protocol on all apps/sites and set the hit type as whatever (as long as it matched across all apps/sites), correct?
You indeed are supposed to create separate properties for the apps and the website - cf. Best practices for Mobile App Analytics setup.
In order to get your consolidated reporting, you could use the google analytics API to get the raw data, and aggregate the measures by yourself.
To reply to your further question: Yes, technically, it is possible to hack the measurement protocol this way. Just push virtual pageviews, custom dimensions/measures, or events, however you like.
Actually, one solution for you may be to use one property per app/website as recommended, plus in addition use an extra property where you just record custom data the way you want, across the apps and the website.
I have a service that pushes data into GA Custom Dimensions/Variables. Before I push I want to know which Custom Dimensions are available to push to and I also don't want to duplicate so if I have the unique name (because I would create unique names) of a Dimension I can check that too.
Anyone know how this can be done? I have searched through the API docs and it doesn't seem like it's anywhere.
Any help would be appreciated!
Thanks!
You can use the Core reporting api to get the names of the dimensions Custom Variables or Columns - Dimensions & Metrics Reference Then select then you can run a request against it to see what values are already stored.
Make sure you look into a service account don't go with normal Oauth2.
I am developing a node.js application which (amongst other things) will recieve location information from remote users and allow them to interact with each other via the server.
I'm using the Google Tracks API because I like the idea of being able to track users when appropriate, set up geofencing to define my coverage areas and to visualise what's happening.
The Google tracks API documentation is reasonable, however I'm not sure how I would go about actually visualising the entities and geofencing I have setup on a map - this is not something that I can find covered elsewhere.
Ideally I would be able to simply embed a map into a webpage which could link with my Tracks API account and show all of the fencing and entities. Another nice feature would be the ability to 'draw' a geofence, is there anything out there which would allow this?
Thanks :-)
Tracks API does not currently offer any kind of server-side rendering for your Tracks data, so the best approach is to use the API to retrieve the crumbs (or just current location) and render them using polylines (or just markers) in the Google Maps API. You can similarly get all your geofences and render them using polygons.
Because this is done clientside, you'll probably want to limit your data to a reasonable number (depending on the browser/OS combination, something like O(thousands) of vertices).
All this assumes that your app meets the terms of service of the Maps API so check those out as well.
I am in the process of building a booking system and I'm wanting to do a lookup, based on a text field, that searches both businesses and addresses.
For example, a user is presented with an Input Box that asks them to enter a location. I want it to support Businesses and Addresses.
My current implementation uses the Geocoding web service, but it's unable to find businesses, so I need to bring in the Places API.
I also need to find the distance between these places using the Google Distance Matrix Web Service.
I thought I'd solved my problem by JUST using the Google Places API, but not all addresses are listed on it.
Any ideas / previous experience is greatly appreciated.
You can use both of these on the page, and place a condition for an unsuccessful search on one (i.e. missing or empty variable) to trigger the other.