Thanks for this code. I assume I could alter this slightly to use parmeters in the URL to link current browser profile to that paremeter?
Currently I am working on a way to send postcards / sms via zapier / lob / anveo that have individualized trackable links.
Since activecampaign has no way currently to create shortened trackable links that can be posted to the api my plan is the following. 1) Post out to a script running on my website the 1) link i want shortened and individualized 2) id of contact this link is individualize for 3) name of contact field to use as a temporary variable to store the shortened link in
The script will interface with my yourls link shortener to shorten my site yourl that has something in it like http://firstname.lastname@example.org or http://myfullurl.com/landing-page?activecampaigncontactID=1565469897 and then it would shorten it to something looking like this http://rtsl.us/lkjaoiu and post back to the contact at the field i sugest.
I will set a timer to a couple minutes after this post out insert the agreed field into my API post out and then I can send out an SMS or postcard with these tracked links and potentially do very complex automations to people who I don’t even have an email address for. Possibly even only have an address for?
Has anyone allready done something like this before?
Does anyone have a sugestion for a better way to do this or is there funcitionality that allready allows something like this?