This is more a question for how you intend to get that information?
@johnny5 this is because we want to pass a channel attribute to our affilate panel, if we add a channel attribute in the end of target URL it will help us to identify from which page we get sales.
I’m trying to add dynamic channel attribute in target URL let suppose if some user click my affliate like from page A then channel will be = page A or if someone click affliate linke from paage B then target URL have channel page B so i will update query parameter dynamically please help me out to fix this and let me know how i can achieve this using your plugin or any custom java-script
You can use a regular expression to capture any data on the original link:
https://redirection.me/support/redirect-regular-expressions/
This is why I asked about how you intend to pass the information along.
I am sending you an Images please let me know how I pass attribute from source URL to target URL
see image below: https://prnt.sc/11szqhy
tell me how i can add regular expression to pass dynamic query parameters.
Well, you will need to pass the channel data into the source URL – the data needs to come from somewhere. Where does the channel data come from?
The support page I referenced contains details about how to create a regular expression. You will need to create your own expression.
@johnny5 again I’m confused how channel attribute from source URL will go to target URL can you create a dummy regular expression as per my case and share here a dummy source URL and dummy target URL.
Channel data will come from javascript, it will add current page slug in channel data.
Channel data will come from javascript, it will add current page slug in channel data.
How and where? This is the root of the question and the answer will probably help you understand how to create a redirect.
As I mentioned above you will need to create your own regular expression. You can read the support guide for information and links.
We will add a JavaScript where it will add channel data to source url and when page load it automatically add channel to all respective source url, i reach on this step now channel data is adding to source url but when someone click on it, it will take to 404 or simple target link without adding channel attribute in target URL as you told in above messages
@johnny5 can you please explain how i can create target URL with Regular expression in redirection tool, your sample code will be appreciated because i am getting confused in regular expressions how data from Source URL will go to target URL, your help is appreciated
You create a regular expression in the source URL not the target.
The support guide has examples and links to references. Please do read it, including the big warning at the top of the page.