pendulum-chain / portal

The Pendulum/Amplitude portal UI
GNU General Public License v3.0
1 stars 1 forks source link

Add Google analytics to the Portal #500

Open prayagd opened 2 weeks ago

prayagd commented 2 weeks ago

Context

In order to track the user actions on the Portal Google analytics script should be added to the portal for certain actions. This is the aim of the ticket.

Requirements


* List of actions to track
    * Category: Spacewalk
        * Action: Select vault manually (click the setting icon)
            * Label: Vault ID
        * Action: Transaction_initiation (clicking the "Bridge" button)
            * Label: Asset Type (XLM, USDC, etc.)
            * Label: Direction (To Pendulum, To Stellar)
            * Label: Transfer amount
        * Action: Click fee breakdown
        * Action: Transaction_status
            * Label: Completed, Cancelled 
    * Category: Navigation
        * Action: Page view
            * Label: Page name (Dashboard, Staking, Spacewalk, Governance, Buy PEN)
        * Action: Select the network
            * Label: Pendulum, Amplitude, Foucoco
    * Category: Wallet
        * Action: Connect the wallet
            * Label: Wallet Type  
        * Action: Disconnect the wallet
    * Category: Staking
        * Action: Stake
            * Label: Collator ID or name
            * Label: 50% or Max  
        * Action: Unstake
            * Label: Collator ID or name 
        * Action: Unlock
        * Action: Claim Rewards 
            * Label: Update
            * Label: Claim   
* Above given code is just an example, label to added and removed as per the actions

## Note
* Category - Feature on portal
* For actions, please add the code when its a portal UI action or when the onchain event is complete
prayagd commented 6 days ago

@Sharqiewicz @ebma please let me know if anything unclear?

ebma commented 6 days ago

Don't we need to set something up in Google analytics as a prerequisite though? Or did you already do that @prayagd? Also, would we need to update our privacy policy for this feature?