What this operation supports in Rebrandly
Attaches an existing tracking script to a link, so that script's pixel fires whenever someone clicks that particular link.
Implementation details
A single link can have multiple scripts attached at once, which is how a redirect commonly fires both a Facebook Pixel and a Google Analytics event from the same single click without needing separate links for each one.
Operational considerations
Because the script has to already exist in the account before this call can reference it, creating the script is a separate prior step rather than something this particular attach call can do in the exact same single request.
Use cases
Attach a validation script to a link group so that new links are automatically checked against policy rules in Rebrandly.
- Automate enrichment by attaching a script that enriches link metadata on create.
- Bind a script to a domain to enforce branding policies in Rebrandly.
- Attach scripts to tags to standardize processing across datasets in Rebrandly.
- Use versioned scripts to rollback changes if validation fails.
