This thread acts as a discussion space for implementing and experimenting-with event triggers in the desktop SYRIUS wallet.
Objective:
Integrate basic events in SYRIUS desktop wallet using the Firebase Google Analytics integration: イベントをロギングする | Google Analytics for Firebase
What are GA events?
In Google Analytics, an event is a user interaction with your website or app that you want to track. Examples of events include a user clicking a button, viewing a video, or making a purchase. When you set up event tracking in Google Analytics, you can collect data about these interactions and use it to understand how users engage with your site or app.
Zenon.Org’s GA events:
The zenon.org website and campaign landing pages has events for every button/link/interaction available, meaning that whenever a visitor visits the website or a specific landing page, any interaction he makes on the website is recorded into Google Analytics.
Is the visitor’s IP address stored into Google Analytics?
Yes and no. We enabled anonymizeIp
in the Google Analytics tag, which is a function in Google Analytics that removes the last octet of the IP address prior to its storage. This means that the IP address of a visitor to a website is not stored in its entirety, but rather with the last octet removed. For example, if a visitor’s IP address is 123.456.789.123, it would be stored as 123.456.789.0 after anonymizeIp is applied.
The purpose of anonymizeIp is to protect the privacy of website visitors by reducing the amount of personal information that is collected and stored by Google Analytics. It is important to note that anonymizeIp does not completely anonymize the IP address, and it is still possible to use the remaining information to approximate the location of the visitor.
More details: [UA] IP masking in Universal Analytics - Analytics Help
Can I verify if the anonymizeIP
function is truly enabled for the landing pages I’m promoting?
Yes, there are 2 methods to verify this (once zenon.org is live):
- Using https://tagassistant.google.com:
a) Add the zenon.org domain to tagassistant.google.com. A new window/tab with zenon.org will pop-up.
b) Click on the “G-M2F8KJ59YQ” button at the top.
c) Click on “Config” on the left pane.
d) Expand the “API Call” window. You’ll find:
gtag("config", "G-M2F8KJ59YQ", {anonymizeIp: "true", send_page_view: true})
The 2nd method:
- Using your browser’s network console:
a) Open developer inspector tools in your browser.
b) Click on the “Network” tab.
c) Load zenon.org
d) Search for a request URL starting with “google-analytics.com”
e) LocateanonymizeIp=true
in the request URL.
Why integrate GA events into SYRIUS desktop wallet?
So that Attribute.Zenon.Org can publicly display event data, and marketers can calculate their costs for acquiring event conversions, including the cost to acquire:
- SYRIUS desktop application installation / setup
- First time Delegation
- First time Staking
- New Pillar spawn
- New Sentinel spawn
- New on-chain proposal submission (and the associated ID so we can track whether it was approved or not). This could prove to be incredible useful when headhunters are campaigning to attract talent into the network.
What is Attribute?
Attribute was developed by mehowz, Amin and Hoori while at THORChain. It’s been since adapted for Zenon.Org. Google Analytics data is hidden behind an account-permissioned dashboard, requiring Administrators to manually add users in order to grant them permissions to view data.
Attribute pulls all the relevant Google Analytics data into a public dashboard for everyone to see, eliminating the need to ask for permissions into Google Analytics.
A marketer could then filter the data to see whether his campaign / zenon address generated some specific clicks on zenon.org which led the user to the Zenon Discord server – or better, whether his campaigning of a SYRIUS download landing page, lead to some new installations of the wallet. He can then calculate how much $ he spent to acquire each new installation, and gauge whether his marketing campaign can be scaled to drive value to the network.
Aside from the analytics data on Attribute, users are given tools to generate special campaign links which’ll attribute their zenon address as the one responsible for the event triggers / conversions.
Can event triggers be gamed/faked?
Yes, and in order to fight this, zenon.org will implement Google reCAPTCHA for the most important events, for example: prior to a SYRIUS wallet download, a user will need to complete a reCAPTCHA puzzle to trigger both the GA event and file download.
Zenon.Org also uses a reverse proxy to mirror and cache its website, with CAPTCHA challenges triggered automatically upon bot detection (machine learned techniques), increasing the difficulty.
Why does it matter if event triggers are gamed/faked?
For data integrity, and to avoid draining funds via potential future smart contracts designed to pay marketers for events attributed to their zenon address.
What would the marketer be able to determine aside from the cost of acquisition, if such events would be integrated into SYRIUS desktop wallet?
- The strategy, channel, source which drives the most event conversions.
- The user’s path leading to an event conversion.
How do you generate a trackable Attribute campaign link that’ll attribute me event conversions?
Using attribute.zenon.org/link-builder, select a landing page you’d like to generate a link-for, fill in the cells on its right, and press “Click to Build Link”. You can create as many links as you’d like with the same zenon address. We’ll likely add a reCAPTCHA in order to avoid spamming / wasting inventory of built links.
Where can I use such Attribute campaign links?
When sharing Zenon to someone new, rather than pointing them to zenon.org, give them your Attribute link (which you’ve generated for yourself for the zenon.org landing page). You can use such links in your Twitter bio, Twitter threads, Telegram, Discord, articles, advertising campaigns etc. Ideally no one should never be driving traffic to zenon.org links directly, but rather always through branded Attribute campaign links.
How do Attribute campaign links look?
We use alternate domains in order to protect the official zenon.org domain, which include:
click.zenon.link
go.zenon.link
(others can be added)
An Attribute campaign link could look something like: click.zenon.link/3wa
How long before events appear in Google Analytics?
Typically within 6-8 hours, however it’s possible it can take up to 24 hours for data to appear in Google Analytics.
What are the limitations?
Some browsers like Brave won’t trigger Google Analytics nor its events. Ideally a marketer should be aware which audiences it targets.
Where are Attribute’s Link Builder links stored? Can they be modified?
Attribute uses a 3rd party link shortening service to generate its links. In the private dashboard, anyone with my admin rights, or the technical teams behind the shortening service, can modify the links generated by users. I doubt this would ever happen, would be a major breach of trust by the provider. Will read their TOS to confirm this.
I cannot modify Google Analytics data.
When will Attribute and Zenon.Org be online?
Our backlog includes the following:
- Getting Attribute back online, and pulling existing Zenon.Org data. The Zenon.Org domain is operating behind a dev URL. A bunch in the community have seen the website and can provide testimonials.
- Getting graphics finished on the new Zenon.Org desktop and mobile websites.
- Displaying some on-chain metrics on Zenon.Org
- Setting up reCAPTCHA amongst a few other minor open issues.
- Ideally setup the ability for anyone to add a retargeting script while building an Attribute link so that they can capture their own audience / traffic, and retarget them in various networks to drive attention back. This one will likely be rolled out at a later date.
We’re very close, it’s been worked for months. The mobile website will be going live at the same time as the desktop website. The whole is built as a framework, zenon.org can create tailored landing page extremely fast to cater to the needs of its public marketers.
I’m open for all questions / comments.
mehowz