...
...
Table of Contents
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
refname
refid
is a variable which indicates the :
For Partner of type Partner insert https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/490307680/Partner+Functionality#Referrer-Profiles ID
For Partner of type Affiliate insert “affiliate”
Code Block | ||
---|---|---|
| ||
<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 --> |
...
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 |
---|---|---|
/ (unauthenticated) | FIO |
App - Home | ||
/myfio | FIO |
App - My FIO | ||
/create-account | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/Account#Email-%26-Password | FIO |
App - Create Account | ||
/create-account-pin | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/Account#PIN-Code | FIO |
App - Create Account Pin |
/create-account-confirm |
FIO App - Create Account Confirm | ||
/create-account-confirmation | FIO App - Create Account Confirmation | |
/create-account-secret-questions | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/Account#Secret-Questions | FIO App - Create Account Secret Questions |
/create-account-secret-questions- |
skip |
FIO |
App - Create Account |
Secret Questions Skip |
/create-account-secret- |
answers | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/Account#Secret-Questions-Answer | FIO |
App - Create Account Secret |
Answers |
/ |
email-confirm-gate | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/Account#Verify-Email-Blocker | FIO App - Confirm email |
/signin | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255623302/ |
FIO |
App - Sign in |
/ |
fio- |
crypto- |
handles- |
selection |
FIO |
App - Crypto Handle Registration |
/ |
fio- |
domains- |
selection |
FIO |
App - |
Domain Registration |
/ |
cart |
FIO |
App - |
Shopping Cart |
/ |
checkout |
/fio-domains-selection
FIO |
App - |
Checkout |
/ |
purchase | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/ |
FIO Dashboard - Shopping Cart
FIO App - Purchase Confirmation | |
/tokens |
FIO Dashboard - Checkout
FIO Apps - Wallets | |
/import |
FIO App - Import FIO Wallet | |
/fio-wallet |
FIO Dashboard - Purchase Confirmation
/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+ |
FIO Dashboards - Wallets
FIO App - Wallet Details | ||
/stake | FIO App - Stake FIO Tokens | |
/unstake | FIO App - Unstake FIO Tokens | |
/send | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - |
Send FIO |
Tokens |
/ |
send- |
confirmation | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - Send FIO Tokens Confirmation |
/ |
new- |
request | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - |
FIO Request |
/ |
FIO Dashboard - Stake FIO Tokens
/unstake
FIO Dashboard - Unstake FIO Tokens
/send
new-request-confirmation | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - |
FIO |
Request Confirmation |
/ |
reject-fio- |
request | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - |
Reject FIO |
Request |
/ |
reject-fio-request-confirmation | FIO |
App - Reject FIO Request Confirmation |
/ |
payment- |
details | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - Send FIO |
Data |
/ |
payment- |
details- |
confirmation | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
FIO |
App - |
Send FIO |
Data Confirmation |
/ |
fio- |
domains |
FIO Dashboard - Reject FIO Request Confirmation
FIO App - Domains | |
/fio-domain-settings |
FIO Dashboard - Send FIO Data
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 |
FIO Dashboard - Send FIO Data Confirmation
FIO App - Domain Status Change | |
/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+ |
FIO |
App - Domain |
Ownership Transfer |
/fio-domain- |
Domain renewal
FIO Dashboard - Renew Domain
/fio-domain-renew-confirmation
Domain renewal confirmation
ownership-confirmation | FIO App - Domain Ownership Transfer Confirmation | |
/fio- |
crypto- |
handles | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO- |
FIO |
App - Crypto Handles |
/fio- |
crypto- |
handle- |
settings | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+Management#FIO |
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 | FIO |
App - |
Crypto Handle Ownership Transfer |
/fio-crypto- |
handle-ownership-confirmation | FIO |
App - |
Crypto Handle Ownership Transfer Confirmation |
/ |
nft- |
signatures |
FIO |
App - |
NFT Signatures |
/ |
sign-nft |
FIO Dashboard - Crypto Handle Settings
/add-bundles
Add bundles
FIO Dashboard - Add Bundles
/add-bundles-confirmation
Add bundles confirmation
FIO Dashboard - Add Bundles Confirmation
FIO App - Sign NFT | |
/sign-nft-confirmation |
FIO Dashboard - Crypto Handle Ownership Transfer
FIO App - Sign NFT Confirmation | |
/link-token-list | https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+ |
FIO |
App - Linked Token List |
/ |
add- |
token |
FIO Dashboard - NFT Signatures
FIO App - Link Token | |
/add-token-confirmation |
FIO Dashboard - Sign NFT
255590800/Address+and+Domain+Management#Link-Token-Confirmation | FIO App - Link Token Confirmation | |
/fio-domain | FIO App - Domain | |
/orders |
FIO |
App - |
Orders |
/ |
order- |
details |
FIO Dashboard - Linked Token List
FIO App - Order Details | |
/order-invoice |
FIO Dashboard - Link Token
FIO App - Order Invoice | ||
/settings | FIO App - Settings | |
/ref/partnername |
FIO Dashboard - Link Token Confirmation
/fio-domain
FIO Dashboard - Domain
FIO App - partnername | |
/wrap-tokens |
FIO |
App - |
Wrap FIO Tokens |
/ |
wrap-tokens- |
confirmation |
FIO Dashboard - Order Details
FIO App - Wrap FIO Tokens Confirmation | |
/unwrap-tokens |
FIO |
/settings
FIO Dashboard - Settings
/ref/partnername
App - Unwrap FIO Tokens | |
/unwrap-tokens-confirmation |
FIO |
App - Unwrap FIO Tokens Confirmation |
/wrap- |
domain |
FIO |
App - Wrap FIO |
Domain |
/wrap- |
domain-confirmation |
FIO |
App - Wrap FIO |
Domain Confirmation | ||
/unwrap | FIO App - Unwrap | |
/unwrap- |
domain |
FIO |
App - Unwrap FIO |
Domain |
/unwrap- |
domain-confirmation |
FIO |
App - Unwrap |
FIO Domain Confirmation | ||
/privacy-policy | FIO App - Privacy Policy | |
/terms-of-service | FIO App - Terms of Service | |
/reset-password |
FIO Dashboard - Wrap FIO Domain
FIO App - Reset Password | ||
/404 | FIO App - Not Found | |
/cookie-notice | FIO App - Cookie Notice | |
/error | FIO App - Error | |
/nft-validation | FIO App - Validate NFT Signature | |
/affiliate-program | FIO App - Affiliate Program | |
/affiliate-program-enabled |
FIO |
App - Affiliate Program Enabled | |
/fio-crypto-handles-custom |
FIO Dashboard - Unwrap FIO Domain
FIO App - Crypto Handle Registration on Custom Domain | |
/unavailable |
FIO |
App - Unavailable |
/ |
twitter- |
FIO Dashboard - Privacy Policy
/terms-of-service
handle | Your Twitter Handle Can Now Receive Crypto | |
/ | Using fio.id domain https://fioprotocol.atlassian.net/wiki/spaces/DAO |
FIO Dashboard - Terms of Service
/reset-password
FIO Handle Look-up | |
/example@domain | Using fio.id domain https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/ |
FIO |
Handle - |
example@domain |
/ |
metamask | FIO |
/cookie-notice
https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/517570597
FIO Dashboard - Cookie Notice
error
FIO Dashboard - Error
/nft-validation
FIO Dashboard - Validate NFT Signature
/affiliate-program
FIO Dashboard - Affiliate Program
App - MetaMask |
Events
When fires | Event name | Parameters |
---|---|---|
User creates account |
| |
User logs in |
|
|
User searches for FCH or Domain or both |
| |
User adds item to cart |
FIO Dashboard - Affiliate Program Enabled
Events
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
User searches for FCH or Domain or both
search
User sees “already registered” error after searching for FCH or Domain or both
search_not_available
|
| |
User removes item from cart https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#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)
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 |
| Same as Add item to cart |
Price updated in cart https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/ |
remove_from_cart
| ||
User clicks Purchase Now or Pay on checkout page |
| 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/ |
begin_checkout
| Same as Add item to cart |
plus:
|
Partial purchase error https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation |
price_change
User clicks Purchase Now or Pay on checkout page
purchase_started
Same as Add item to cart
500793345/Checkout#Pay-with-CoinPayments%2FStripe-Confirmation |
| |
Complete purchase error https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation |
|
Same as Add item to cart plus:
payment_type
- purchase type: “free”, “fio”, “stripe”
| ||
Cart is emptied due to inactivity |
| |
User creates new FIO wallet |
purchase_partial
Complete purchase error
https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/500793345/Checkout#Pay-with-FIO-Confirmation/255591518/FIO+Token+FIO+Request+FIO+Data#Create/Edit-New-Wallet |
|
|
User stakes FIO tokens |
|
|
User unstakes FIO tokens |
|
|
User sends FIO Tokens |
purchase_error
Cart is emptied due to inactivity
cart_emptied
|
| |
User sends new FIO Request https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
wallet_create
wallet_create_type
- “ledger” (wallet is ledger hardware wallet), “standard” (all other wallets)
User stakes FIO tokens
token_stake
token_stake_amount
- Amount of FIO Tokens staked
User unstakes FIO tokens
token_unstake
token_unstake_amount
- Amount of FIO Tokens unstaked
| ||
User sends FIO |
Data https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
|
token_send_amount
- Amount of FIO Tokens sent
token_send_type
- Type of send: “fch” (send to FCH), “pubadd” (sent to public address)
| |
User rejects FIO Request https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255591518/FIO+Token+FIO+Request+FIO+ |
|
| |
Users flips domain status |
|
|
| |
Users transfers domain ownership |
fio_request_reject
Status | ||||
---|---|---|---|---|
|
|
| |
Users |
transfers FCH ownership https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+ |
fio_domain_status
| ||
User signs NFT https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/299630593/NFT+Signatures#Sign-NFT.1 |
| |
Users links token to FCH https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/255590800/Address+and+Domain+ |
fio_domain_transfer
Users transfers FCH ownership
fch_transfer
Status | ||||
---|---|---|---|---|
|
fch_add_bundles
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
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
| ||
User enables 2FA |
| |
User sets up recovery |
| |
User encounters chain error on any transaction, except purchase |
| |
User validates NFT on https://dashboard.fioprotocol.io/nft-validation |
| |
User wraps tokens |
| |
User wraps domain |
| |
User unwraps tokens |
| |
User unwraps domain |
| |
User enables affiliate program |
|
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 |
---|---|---|
User’s email address | ||
event | Body | Event name as above |
Body Example
Code Block | ||
---|---|---|
| ||
{
"email":"bob@gmail.com",
"event":"sign_up"
} |
Response
Ignore response