amastellone / mail-funnel-client

Mail-Funnel, a Shopify Embedded App available in the Shopify App Store
2 stars 3 forks source link

Create the Redirect Web-App for Analytics #51

Open vaskaloidis opened 7 years ago

vaskaloidis commented 7 years ago

Create a webapp that redirects a user to a specified page, after recording certain data for analytics.

We will have various links leading back to Mail Funnels from various destinations, like Emails. We need to first have all these links go to this webapp, and include params in the URL like the campaign, Email-List, etc...

We must also pass in a calculated secret Token that will prevent abuse of the system. The token needs to be calculated from a piece of data, probably another param, and needs to be included. If this token is not present or not correct, our redirect system should throw an error or just do nothing. It must make sure it does not record any analytics data on these requests with bad tokens.

So after the system records analytical data based on the params included, it then needs to decide where to forward the user based on the params included, and then forward them there.