Closed pacholoamit closed 1 month ago
Update: To set up static website in S3 for testing on staging AWS. Ask Devops to create a valid domain to test the functionality
Updates:
Think of different edge cases where issues could happen
For each custom integration we need to install 2 things:
<script src='https://tags.cnna.io/?appId=...></script>
<script src='https://staging-tags.attentionsignals.net/?appId=...></script>
NOTE: appId must be different from prod and staging tags
Next things is we get the transaction for production and then place this on the site somehow
<script>
// Get transaction somehow with javscript
window.tracker("addTrans:Production" .... )
window.tracker("trackTrans")
</script>
NOTE: The "Production" after the "addTrans" is the appId
For Staging, what we need to do is add a file in the frictionless repo with the correct domain name
window.tracker("addTrans:Staging" ... )
window.tracker("trackTrans")
Sites to look at:
Updates have been made to conditionally create the staging tag
Added Lookah and thegreendragoncbd
Description
The goal is to implement a custom domain handler in the mediajel-tracker. This will make it so, we will no longer need to request access from the client when doing custom integrations..
Proposal 1
window.location.href
> Make a GET request to the cloudfront url +window.location.href
. This should resolve to a javascript file specifically on the S3 bucket if it exists. If the javascript file exists for the domain, load it to the page, if it does not then do nothing.Enhancements
Notes: