The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

adding tracking url to a prelander html file.

Llew

New Member
Hello,

Recently I was sent a prelander, in the form of an html file, from an advertiser in order to promote their offer. However I am having trouble adding my tracker url to the html file script. I tried using purelander to rip the file and edit it that way, but the ripped versions had parts of the original missing. If anyone knows how to solve this issue your help would be greatly appreciated!
 
What tracker are you using?

I was sent a prelander, in the form of an html file, from an advertiser
This cannot have any effect on the setup because it doesn't really matter if you make the landing page yourself or an advertiser sends it. Please try to elaborate the concern with all the necessary details otherwise people here might not be able to help you.
 
What tracker are you using?


This cannot have any effect on the setup because it doesn't really matter if you make the landing page yourself or an advertiser sends it. Please try to elaborate the concern with all the necessary details otherwise people here might not be able to help you.
I usually make my prelanders using purelander so adding my tracking url can be achieve through the "link replacer" button. However because I cannot use purelander as mentioned in the original post, I have to find another way to edit the html source code to add my tracker url.I don't see how the tracker I'm using would matter tho. I'm simply trying to change the click url on an html file sent to me. Thanks for your response and let me know if you have any more questions.
 
Just open the file with an ANSI plain text editor -- simple notepad will work if you are a Windows user.
* change a link IN the HTML file
HTML:
<a href="//link.com/">anchor text (or <img src="")</a>
<!-- TO -->
<a href="//link.com/?aff=12345&cid=990">anchor text (or <img src="")</a>
then save as *.html
The best tool you have in your tool box is your brain ...
 
Just open the file with an ANSI plain text editor -- simple notepad will work if you are a Windows user.
* change a link IN the HTML file
HTML:
<a href="//link.com/">anchor text (or <img src="")</a>
<!-- TO -->
<a href="//link.com/?aff=12345&cid=990">anchor text (or <img src="")</a>
then save as *.html
The best tool you have in your tool box is your brain ...
Thank you, it worked!!
 
Glad it worked for you -- it's really pretty simple to do.
What I find easiest to make minor changes is nano live in your server in SSH
Code:
$ cd /var/www/html/path/
$ cp file.html file.html.bk-$(date +%F)
upload_2020-8-16_20-48-49.png


does this ^(makes a back-up) oops happens sometimes :)

Then
Code:
$ nano file.html
upload_2020-8-16_20-56-23.png


Code:
$ man nano
server manual
upload_2020-8-16_20-58-32.png

  1. make your changes
  2. ^x (ctrl+x) then y and the enter (return key)
  3. this takes seconds and you don't have to fool around with FTP or better (much more secure) scp or rsync.

"the best tool to develop is your mind's ability" :)
 
sorry for my late replay,
any ways am glad you solved that problems manually.

good to hear that.
 
On Windows you can use Notepad++ or any other text editor, that supports the so-called regular expressions. Open your html file there and then look at this screenshot.
upload_2020-10-11_17-53-28.png


So just push the Regular expression radiobutton and then enter this:
Find what: (<a[^>]+href=[\'\"])([^\'\"]+)
Replace with: $1http://mylink.com

Then hit Replace All and you are done!
 
That will work only if the link is always the same in the source file. If you download your page from some website, then just replacing the url won't work.
 
whatever Mr. Winblows .... :p
wtf to you need all that regex for? SPECIFICALLY
Maaaan, this regex can be used on any OS, I just showed a usecase. This expression could be used if you scraped someones prelander and want to replace all the links in it quickly. Copy-paste, replace - and you are good to go.
 
sed(1) - Linux man page
just learn LINUX/UNIX and sed :D
$ sed 's/panel\.dolphin\.ru\.com/example\.com/g' file_name

Code:
barry@paragon-DS-7:~$ echo 'https://panel.dolphin.ru.com/'| sed 's/panel\.dolphin\.ru\.com/example\.com/g'
https://example.com/
i reversed : not to make links :p
 
MI
Back