Attach Script

Last updated

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.

  1. Automate enrichment by attaching a script that enriches link metadata on create.
  2. Bind a script to a domain to enforce branding policies in Rebrandly.
  3. Attach scripts to tags to standardize processing across datasets in Rebrandly.
  4. Use versioned scripts to rollback changes if validation fails.

Need help with Rebrandly?

Tell us what you're working with. We'll follow up to schedule a free consultation and map out the fastest path to real adoption.

Book a free consultation

Tell us about your team and the software you need help with. We'll follow up to schedule a time to talk.

Open the form on its own page

Get help