Creating Dynamic (Affiliate) URL
-
I have just installed your plugin and am impressed by the ability to add tweets with pre-populated text in line with the conversation of the post.
I would like to add an affiliate code to the post URL so that logged in subscribers can earn affiliate commissions for directing their Twitter followers to my posts.
I know enough PHP to be able to retireve the visitor affiliate ID, if they are logged in, and to ignore if they are not. I would add code to the plugin (and save a copy of the modified file as a backup) that would allow me to insert the affiliate id into a variable, and then append this variable to the URL following your instructions. The affiliate id variable would probably be something like $affid.
How can I append this to the URL that is shortened before it is shortened by Twitter? I am formatting my tweets as … [bctt tweet=”Some text here”]
Where would I insert this variable, and how would I code it into the pre-shortened URL?
Thanks,
Kirk Ward
- The topic ‘Creating Dynamic (Affiliate) URL’ is closed to new replies.