Objective C Ga Tracker For Apple Tvos

Objective C Ga Tracker For Apple Tvos
Alternatives To Objective C Ga Tracker For Apple Tvos
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Build Your Own Mint2,385
6 months ago12mitHTML
Build your own personal finance analytics using Plaid, Google Sheets and CircleCI.
Universal Analytics92714,741243a year ago44December 14, 202143JavaScript
A node module for Google's Universal Analytics and Measurement Protocol
Google Measurement Protocol93
3 years ago13bsd-2-clausePython
A Python implementation of Google Analytics Measurement Protocol
Laravel Spanner77
3 days ago30August 23, 20221apache-2.0PHP
Laravel database driver for Google Cloud Spanner
Dialogflow Transactions Nodejs69
a year ago2apache-2.0JavaScript
Physical transactions sample (using Dialogflow) in Node.js
Go Sql Driver Spanner6633 years ago6May 07, 2020apache-2.0Go
Google Cloud Spanner driver for Go
Hackerwallet45
7 years agoCoffeeScript
Personal finance management for Node.js hackers and Google Docs users
Slmgoogleanalytics42615 years ago9December 15, 20145otherPHP
A ZF2 module to track pages, events and ecommerce transactions with Google Analytics
Firestore Clj35
7 months ago17May 18, 20203mitClojure
An unofficial Firestore API for Clojure. Provides tools for doing single pulls and writes, streaming real-time data, batched writes and transactions.
Go Firestorm261a year ago3July 09, 2020mitGo
Simple Go ORM for Google/Firebase Cloud Firestore
Alternatives To Objective C Ga Tracker For Apple Tvos
Select To Compare


Alternative Project Comparisons
Readme

Google Analytics tracker for Apple tvOS

by Analytics Pros

About

Google Analytics tracker for Apple tvOS provides an easy integration of Google Analytics’ measurement protocol for Apple TV. This library enables sending screenviews, events, exceptions and any other hit type to Google Analytics. Implementation of the library and sending an initial hit to Google Analytics takes only a few minutes.

Implementation

All code for this tracker is located inside the files “GATracker.h” and “GATracker.m”. The first step of the implementation is associating this library file with your application project.

This library creates an object (a tracker) that holds persistent values such as client id, property id, and more. The tracker is created with the following command:

[GATracker setupWithTrackingID:UA-1234567-89"];

This code should run in the AppDelegate method applicationDidFinishLaunchingWithOptions.

Hit Examples

Once the tracker is set up you can start sending Google Analytics hits from your Apple TV application.

Screenview

When sending the screenview hit type, the screenname parameter is a required field.

[GATracker screenView:@"FirstScreen" customParameters:nil];

Event

When sending the event hit type, the event category and action a required fields

[GATracker event:@"category" action:@"action" label:nil customParameters:nil];

Exception

When sending the exception hit, the exception description and exception “fatality” are both required parameters

[GATracker excpetionWithDescription:@"This test failed" isFatal:true customParameters:nil];

Sending Additional Parameters

With each hit you are also able to send additional parameters as specified in the Measurement Protocol reference. Examples include: “non interactive hit”, “event value”, “custom dimensions”, “custom metrics” etc.

In the following example we will add custom metric values and set this event hit as non interactive. The example shows how to send a video progress hit that includes video name as custom dimension 1, video author as custom dimension 2 and sets the event as non interactive (since this event is not a result of user interaction).

[GATracker event:@"Video" action:@"Progress" label:@"50%" customParameters:@{@"cd1":@"Incredible Video", @"cd2":@"Amazing A. Uthor", @"ni":1}];

As mentioned before you are able to use any measurement protocol parameters inside the customParameters dictionary. https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters?hl=en

Sending Other Hit Types to Google Analytics

Screenview, event and exception are not the only hit types available in Google Analytics, to send a different hit such as a transaction, item, social or timing hit use the send function.

In the following example we will send a transaction hit with transaction id 10001 and transaction revenue of $425,00.

[GATracker send:@"transaction" andParams:@{@"tid" : @"10001", @"tr" : @"425.00", @"cu" : @"USD"}];

For additional information email [email protected] or visit our website http://www.analyticspros.com

Sample App

When running the sample app make sure ot update the property id in the app delegate.

[GATracker setupWithTrackingID:"Your Property ID"];
Popular Google Projects
Popular Transaction Projects
Popular Companies Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Objective C
Google
Transaction
Tracker
Apple
Tvos