I asked this in a different section and got no response, so I'll try it here.

I am attempting to get approval to join an affiliate program with AvantLink. They want me to paste a javascript. Here is the instruction:

The JavaScript can be placed in one of the following places:

Locate your homepage. This is probably named "index.html" or "index.php" in your web root directory (likely to be named "public_html"). You may need to check with your host to determine what file this is. Paste the JavaScript anywhere in that file and save the file to your web server.
Paste the JavaScript anywhere within the template that is used on the homepage of your site. This is especially useful if your website is a blog. If your website is a blog, you may also place the JavaScript within a post that will be shown in full on the homepage until we are able to verify that it is there.

I can't seem to locate any index.html or index.php to use.

For the second option it isn't clear to me where I could paste it. In an attempt I pasted the JavaScript to one of my posts in wordpress, but AvantLink was unable to detect it.

Any advice would be appreciated.

Thanks.

Join the Discussion
Write something…
Recent messages
TimMcKinlay Premium Plus
Hi Joe,

I'm probably not the best person to answer this, but I'll do my best to help you out here anyway.

Basically, you need to learn how to use FTP, install a plugin of some kind or learn how to manually insert a very specific code into your functions.php file inside of WordPress.

It depends which method you want to run with and to be honest there are other methods, and it depends on your theme.

I don't like using plugins for stuff I can manually do but this is probably the easiest method.

Or another easy way is what Marion suggested when answering someone who asked this exact question here: Marion answered with a screenshot that basically says you can log into your site, go into your home page within the 'pages' section, click on the text editor (just above the part of the page where you are actually writing there's a tab called 'text'. Insert the code in there, wrapped in the 'code' tags as shown within the screenshot.

So in other words you are literally placing the code into your homepage, like you would regular content. Except it's code. I haven't tried this for verifying something but it sounds as though it works.

I use Genesis themes myself, so I normally just insert code on a page by page basis using a function this theme gives you, or FTP or edit the functions.php file.

I personally would try the first or second method, and if this doesn't work, and no one else has a better answer, then I would contact support to see if they will help you. I know it's a bit out of their scope but I'm curious to see if they'd help you out.

Or I can explain how to use FTP. My biggest concern here is you could mess up your whole site by inserting the wrong code or code in the wrong place. So it's risky.
Reply
j52powell Premium
Thanks, Tim. Your instructions are very clear. I followed the method for pasting the javascript to the homepage. When I returned to the visual from the text version, the tag was there. When I went to the webpage however, it wasn't evident. I guess it is supposed to be visible. I still got the unable to authenticate message from AvantLink.

I have notified their support and will see what they say.

This is really a pain in the butt compared to being an Amazon Associate.

My theme is Blogzen.
Reply
j52powell Premium
Support at AvantLink replied that my application was declined due to low traffic at my site. I guess they were able to track me from the javascript I pasted or somehow otherwise.

Thanks a lot for your help, Tim. I'll apply again down the road when my site is more active.
Reply
TimMcKinlay Premium Plus
Hi Joe,

You're very welcome, glad I could help.

Yeah so if you did it correctly, which it sounds like you did, then it shouldn't be visible on the front end of your site.

That sucks about not being accepted but I wouldn't let it turn you off. I personally focus on content and traffic with my site before applying for an affiliate program anyways. I build the primary asset (website + audience) to a point I'm happy with then focus on monetising. I think this is a good way to go since you won't make much money until you have traffic anyway.

Amazon is good too. Super easy to get approved for and a good affiliate program depending on your niche.

Anyways keep on moving forward and reach out if you need me! :)

Cheers
Reply
Top