Analytics

Table of Contents

Global GTM tag

The following tags should exist on every page, except Admin pages. No need to customize based on environment (e.g. Test, Prod). Same tag is to be shown.

Head

refid is a variable which indicates:

<script> window.dataLayer = window.dataLayer || []; </script> <script> dataLayer.push({event: "userData", refid: "uniqueone"}) </script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KZHJFJH');</script> <!-- End Google Tag Manager -->

Body

Immediately after <body> tag.

<!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KZHJFJH" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->

Page titles

Page views are triggered by change in url, therefore every page needs to have a unique url. URLs in red need to be updated, as they are duplicates now.

URL

Spec reference

Page Title

URL

Spec reference

Page Title

/ (unauthenticated)

Dash Functional Specification | Home Page

FIO App - Home

/myfio

Dash Functional Specification | Home Page

FIO App - My FIO

/create-account

Account | Email & Password

FIO App - Create Account

/create-account-pin

Account | PIN Code

FIO App - Create Account Pin

/create-account-confirm

Account | Account Confirm

FIO App - Create Account Confirm

/create-account-confirmation

Account | Account Create Confirmation

FIO App - Create Account Confirmation

/create-account-secret-questions

Account | Secret Questions

FIO App - Create Account Secret Questions

/create-account-secret-questions-skip

Account | Secret Questions Skip Confirm

FIO App - Create Account Secret Questions Skip

/create-account-secret-answers

Account | Secret Questions Answer

FIO App - Create Account Secret Answers

/email-confirm-gate

Account | Verify Email Blocker

FIO App - Confirm email

/signin

Account | Sign in

FIO App - Sign in

/fio-crypto-handles-selection

Registration | Register FIO Address.1

FIO App - Crypto Handle Registration

/fio-domains-selection

Registration | Register FIO Domain.1

FIO App - Domain Registration

/cart

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Cart

FIO App - Shopping Cart

/checkout

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-Stripe

FIO App - Checkout

/purchase

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-CoinPayments%2FStripe-Confirmation

FIO App - Purchase Confirmation

/tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#FIO-Token

FIO Apps - Wallets

/import

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Import-Wallet

FIO App - Import FIO Wallet

/fio-wallet

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Wallet-Transaction-List

FIO App - Wallet Transactions

/fio-wallet-details

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Wallet-Details

FIO App - Wallet Details

/stake

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/451477688

FIO App - Stake FIO Tokens

/unstake

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/451477688

FIO App - Unstake FIO Tokens

/send

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Send-FIO-Token

FIO App - Send FIO Tokens

/send-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#FIO-Tokens-Sent-Confirmation

FIO App - Send FIO Tokens Confirmation

/new-request

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#FIO-Request

FIO App - FIO Request

/new-request-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#FIO-Request-Confirmation

FIO App - FIO Request Confirmation

/reject-fio-request

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Reject-FIO-Request

FIO App - Reject FIO Request

/reject-fio-request-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#FIO-Request-Rejected-Confirmation

FIO App - Reject FIO Request Confirmation

/payment-details

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Enter-Payment-Details

FIO App - Send FIO Data

/payment-details-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Payment-Details-Confirmation

FIO App - Send FIO Data Confirmation

/fio-domains

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Domain-List

FIO App - Domains

/fio-domain-settings

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Domain-Settings

FIO App - Domain Settings

/fio-domain-renew

Domain renewal

FIO App - Renew Domain

/fio-domain-renew-confirmation

Domain renewal confirmation

FIO App - Renew Domain Confirmation

/fio-domain-status-change

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Domain-Status-Change

FIO App - Domain Status Change

/fio-domain-status-change-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Domain-Status-Change-Confirmation

FIO App - Domain Status Change Confirmation

/fio-domain-ownership

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address%2FDomain-Ownership

FIO App - Domain Ownership Transfer

/fio-domain-ownership-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address%2FDomain-Confirmation

FIO App - Domain Ownership Transfer Confirmation

/fio-crypto-handles

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Address-List

FIO App - Crypto Handles

/fio-crypto-handle-settings

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Address-Settings

FIO App - Crypto Handle Settings

/add-bundles

Add bundles

FIO App - Add Bundles

/add-bundles-confirmation

Add bundles confirmation

FIO App - Add Bundles Confirmation

/fio-crypto-handle-ownership

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address%2FDomain-Ownership

FIO App - Crypto Handle Ownership Transfer

/fio-crypto-handle-ownership-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address%2FDomain-Confirmation

FIO App - Crypto Handle Ownership Transfer Confirmation

/nft-signatures

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/299630593/NFT+Signatures#NFT-Signatures-List

FIO App - NFT Signatures

/sign-nft

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/299630593/NFT+Signatures#Sign-NFT.1

FIO App - Sign NFT

/sign-nft-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/299630593/NFT+Signatures#Sign-NFT-Details

FIO App - Sign NFT Confirmation

/link-token-list

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Link-Token-List

FIO App - Linked Token List

/add-token

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Link-Token

FIO App - Link Token

/add-token-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Link-Token-Confirmation

FIO App - Link Token Confirmation

/fio-domain

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/510328833

FIO App - Domain

/orders

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/503054375/My+Orders#My-Orders

FIO App - Orders

/order-details

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/503054375/My+Orders#Order-Details

FIO App - Order Details

/order-invoice

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/503054375/My+Orders#Order-Invoice-PDF

FIO App - Order Invoice

/settings

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/310608242

FIO App - Settings

/ref/partnername

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/490307680/Partner+Functionality#Landing-Page

FIO App - partnername

/wrap-tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/479854635/Token+Wrapping#Wrap-FIO-Tokens

FIO App - Wrap FIO Tokens

/wrap-tokens-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/479854635/Token+Wrapping#FIO-Tokens-Wrapped---With-Fees

FIO App - Wrap FIO Tokens Confirmation

/unwrap-tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/493846529/Token+Unwrapping#Unwrap-FIO-Tokens

FIO App - Unwrap FIO Tokens

/unwrap-tokens-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/493846529/Token+Unwrapping#FIO-Tokens-Unwrapped

FIO App - Unwrap FIO Tokens Confirmation

/wrap-domain

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/490635272/Domain+Wrapping#Wrap-FIO-Domain

FIO App - Wrap FIO Domain

/wrap-domain-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/490635272/Domain+Wrapping#FIO-Domain-Wrapped---With-Fees

FIO App - Wrap FIO Domain Confirmation

/unwrap

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/493846529

FIO App - Unwrap

/unwrap-domain

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/493944833/Domain+Unwrapping#Unwrap-FIO-Domain

FIO App - Unwrap FIO Domain

/unwrap-domain-confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/493944833/Domain+Unwrapping#FIO-Domain-Unwrapped

FIO App - Unwrap FIO Domain Confirmation

/privacy-policy

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/310575257

FIO App - Privacy Policy

/terms-of-service

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/340623377

FIO App - Terms of Service

/reset-password

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/151879691/Security#Forgot-Password

FIO App - Reset Password

/404

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/513835009

FIO App - Not Found

/cookie-notice

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/517570597

FIO App - Cookie Notice

/error

 

FIO App - Error

/nft-validation

 

FIO App - Validate NFT Signature

/affiliate-program

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/552042499

FIO App - Affiliate Program

/affiliate-program-enabled

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/552042499/Affiliate+Program#Enabled-view

FIO App - Affiliate Program Enabled

/fio-crypto-handles-custom

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Shopping+and+Checkout#FIO-Crypto-Handle-on-custom-domain

FIO App - Crypto Handle Registration on Custom Domain

/unavailable

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/513835009/Error+Pages#Outage-Page

FIO App - Unavailable

/twitter-handle

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/646184971

Your Twitter Handle Can Now Receive Crypto

/

Using fio.id domain https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/671055873/FCH+Profile#Profile-Look-up

FIO Handle Look-up

/example@domain

Using fio.id domain https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/671055873/FCH+Profile#Profile---Payments

FIO Handle - example@domain

/metamask

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/818479110

FIO App - MetaMask

Events

When fires

Event name

Parameters

When fires

Event name

Parameters

User creates account

sign_up

 

User logs in

login

method

  • password - when user logs in with password

  • pin - when user logs in with PIN

  • external - when user logs in via Metamask or Opera

User searches for FCH or Domain or both

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255624148

search

 

User adds item to cart

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Cart

add_to_cart

currency = “USD”

value = cost of all items being added

items = Array of items

item_name =

  • “domain”

  • “fch”

  • “combo” (if search was for FCH on custom domain)

  • “free_fch” (if FCH is free)

  • domain_renewal

  • add_bundles

price = price of item (set to 0 for free FCH)

Append: “_clear: true” to items array

Spec reference

User removes item from cart

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Cart

remove_from_cart

Same as Add item to cart

User clicks Checkout Now (or Complete Transaction) or Cart icon in main navigation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Cart

begin_checkout

Same as Add item to cart

Price updated in cart

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Price-Change

price_change

 

User clicks Purchase Now or Pay on checkout page

purchase_started

Same as Add item to cart

Shopping cart is purchased

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-CoinPayments%2FStripe-Confirmation

purchase

Same as Add item to cart plus:

payment_type - purchase type: “free”, “fio”, “stripe”

Partial purchase error

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-CoinPayments%2FStripe-Confirmation

purchase_partial

 

Complete purchase error

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-CoinPayments%2FStripe-Confirmation

purchase_error

 

Cart is emptied due to inactivity

cart_emptied

 

User creates new FIO wallet

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Create/Edit-New-Wallet

wallet_create

wallet_create_type - “ledger” (wallet is ledger hardware wallet), “standard” (all other wallets)

User stakes FIO tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/451477688

token_stake

token_stake_amount - Amount of FIO Tokens staked

User unstakes FIO tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/451477688

token_unstake

token_unstake_amount - Amount of FIO Tokens unstaked

User sends FIO Tokens

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Send-FIO-Token

token_send

token_send_amount - Amount of FIO Tokens sent

token_send_type - Type of send: “fch” (send to FCH), “pubadd” (sent to public address)

User sends new FIO Request

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#New-FIO-Request

fio_request_new

 

User sends FIO Data

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Enter-Payment-Details

fio_data_new

 

User rejects FIO Request

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+Data#Reject-FIO-Request

fio_request_reject

 

Users flips domain status

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO-Domain-Status-Change

fio_domain_status

 

Users transfers domain ownership

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address/Domain-Ownership

fio_domain_transfer

 

Users transfers FCH ownership

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Transfer-FIO-Address/Domain-Ownership

fch_transfer

 

User signs NFT

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/299630593/NFT+Signatures#Sign-NFT.1

fch_sign_nft

 

Users links token to FCH

https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#Link-Token

fch_link_token

 

User enables 2FA

sec_2fa

 

User sets up recovery

sec_recovery

 

User encounters chain error on any transaction, except purchase

chain_error

 

User validates NFT on https://dashboard.fioprotocol.io/nft-validation

nft_validate

 

User wraps tokens

wrap_token

 

User wraps domain

wrap_domain

 

User unwraps tokens

unwrap_token

 

User unwraps domain

unwrap_domain

 

User enables affiliate program

affiliate_enabled

 

SendInBlue Analytics

High-level Requirements

Anytime the above event occurs and the user is known (logged in) and has opted in to receiving marketing emails, the server needs to send an event notification to SendInBlue:

  • If initial opt-in flag (set by user during registration) is not stored on the server, send the request for every user, but expect 404 error to be returned if user has not opted in and is not in SendInBlue db.

  • There is a way to also send events via js: https://developers.sendinblue.com/docs/gettings-started-with-sendinblue-tracker , but I believe the API method better matches what was already developed for Mailchimp

API Spec

Server and credentials

See https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/96665686/Emails#Settings

Request

Variable

Type

Value

Variable

Type

Value

email

 

User’s email address

event

Body

Event name as above

Body Example

{ "email":"bob@gmail.com", "event":"sign_up" }

Response

Ignore response