TV202 Prosper202 Tracking202 Export202 WorldProxy202 Meetup202 | Blog Forum Newsletter Twitter | Advertise
Login · Register
Home About Docs Scripts Blog Forums Hosting Donate Download
Before Posting, Have You Read the FAQ? And Have You Searched? If Not Please Do!

Attn: The 202 Support Forum will now be revised
Within the next few weeks the Tracking202 Support Forum will be revised. Some threads will be shut down or reorganized. New rules will be put in place to accommodate those who need help. The 202 team wants to make the forum a more user friendly place for new and old affiliates. We want to make this forum a place for affiliates to help each other be successful.

Prosper and Wordpress

Post new topic Reply to topic Prosper202 Forum Index » Prosper202 General Discussion
New Posts Search Forum
Author Message
jsmenter
Website


Joined: Mar 30th, 2008
Posts: 17

Post Posted: Jun 16th, 2008 at 5:35pm Post subject: Prosper and Wordpress Reply with quote

I Know people are using Wordpress and Tracking/Prosper202.

How are people implementing the javascript code when you have different offers on different posts or pages. Since Wordpress uses a single template for all the posts. And I have multiple javascript codes for different landing pages/posts.

Scott

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Jun 16th, 2008 at 9:14pm Post subject: Re: Prosper and Wordpress Reply with quote

You should place the js on the first page the visitor lands on. Usually if it's the home page and if you don't intend to write multiple posts and just use WP as a CMS system for your LP, then post the js on the main post that is showing up on the home.

Back to top
jsmenter
Website


Joined: Mar 30th, 2008
Posts: 17

Post Posted: Jun 17th, 2008 at 7:26am Post subject: Re: Prosper and Wordpress Reply with quote

What I have is a landing site with multiple related offers on different posts. So traffic will be landing on different pages.

For instance right now I have 19 simple landing pages I'll be sending traffic to.

Right now I don't see a way to use the javascript code for each LP. I've generated one to put in the footer to just count the number of visitors and plan on keeping track of which individual LP traffic arrives on by the ad that was clicked.

If anyone has any other ideas, I'd like to hear them.

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Jun 17th, 2008 at 1:29pm Post subject: Re: Prosper and Wordpress Reply with quote

If you have an offer per post, why not put the corresponding js in the post?

Back to top
jsmenter
Website


Joined: Mar 30th, 2008
Posts: 17

Post Posted: Jun 17th, 2008 at 3:33pm Post subject: Re: Prosper and Wordpress Reply with quote

All the posts are generated by the same template. Either the index.php, single.php or page.php depending on setup.

So unless there is something I don't understand how would you put in the js.

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Jun 17th, 2008 at 3:36pm Post subject: Re: Prosper and Wordpress Reply with quote

Yes I understand that. What I was referring to is, if each blog post is set up so that they are landing pages (meaning you have 19 landing pages on 19 different blog posts - 1 for each), enter the js script directly into the blog post itself. There is no restriction as to why you can't put the js in the post.

Unless I mistaken what you're saying before. It's hard to visualize

Back to top
jsmenter
Website


Joined: Mar 30th, 2008
Posts: 17

Post Posted: Jun 17th, 2008 at 8:05pm Post subject: Re: Prosper and Wordpress Reply with quote

Learn something new every day. Always thought you couldn't put code directly into posts.

The good news. Javascript works in the post.

Bad news. It messes up my theme.

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Jun 17th, 2008 at 9:57pm Post subject: Re: Prosper and Wordpress Reply with quote

ah... let me know how that goes

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Jun 18th, 2008 at 4:47am Post subject: Re: Prosper and Wordpress Reply with quote

jsmenter wrote:
Learn something new every day. Always thought you couldn't put code directly into posts.

The good news. Javascript works in the post.

Bad news. It messes up my theme.

Hmm the JS shouldn't mess up the theme?

Back to top
Dezzy


Joined: Jun 20th, 2008
Posts: 1

Post Posted: Jun 20th, 2008 at 12:14pm Post subject: Re: Prosper and Wordpress Reply with quote

I have the same problem. It messes up my theme.

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Jun 20th, 2008 at 12:49pm Post subject: Re: Prosper and Wordpress Reply with quote

Dezzy wrote:
I have the same problem. It messes up my theme.

how is it messing up your theme? Can u take a screenshot,

its only messing up the screen if u post in the post right?

It should just be javascript, its not displaying any HTML so I can't see how its making anything look different, unless the JS was placed in a spot that screwed up the html

Back to top
ohmichea


Joined: Jul 28th, 2008
Posts: 2

Post Posted: Jul 30th, 2008 at 7:28pm Post subject: Re: Prosper and Wordpress Reply with quote

Did anyone figure this out? It is messing up my theme as well.

Back to top
ohmichea


Joined: Jul 28th, 2008
Posts: 2

Post Posted: Jul 30th, 2008 at 7:37pm Post subject: Re: Prosper and Wordpress Reply with quote

I found this but I don't fully understand what to do

Javascript in Posts

To use Javascript inside of posts in WordPress, you need to take a few more steps. Odds are that this usage is for one or only a few instances, so adding the script to the header would be unnecessary.

For the occasional or one time use of Javascript, you need to put the script into a Javascript file and then call it out from within the post. Make sure that each script is defined by its function name such as:

function updatepage(){var m="Page updated "+document.lastMo.......}

To include a Javascript inside a post, you need to combine both the call to the script file with the call to the Javascript itself.

<script type="text/javascript" src="/scripts/updatepage.js"></script>

<script type="text/javascript">

<!--

updatepage();

//--></script>

If the src attribute of your javascript tag is being stripped out you need to turn off the rich editor (from the dashboard go to Users > Personal Options). If you are using the rich editor the javascript tag's src attribute may be stripped out even when manually editing in the HTML popup window.

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Jul 31st, 2008 at 1:24am Post subject: Re: Prosper and Wordpress Reply with quote

Are you familiar with PHP, it may be easier to embed it in your theme, and have the PHP CODE only show on the correct page.

If you don't know what I mean I can post an example.

just tell me the page on your site that it will be displayed on

for instance

mydomain.com/thispageiswhereIwanttheJScode

Back to top
tvanslooten


Joined: Aug 7th, 2008
Posts: 1

Post Posted: Aug 7th, 2008 at 11:24pm Post subject: Re: Prosper and Wordpress Reply with quote

Has anyone figured this out yet? I too use WordPress for all of my affiliate sites. I create conten sites but then build "hidden" landing pages that are used exclusively for PPC. Some of my landing pages are PAGES in WordPress but I also send some traffic to POSTS within WordPress that act as landing pages.

I'm not a technical person at all so this stuff is kind of over my head. After doing some research, you cannot simply post the javascript code into the post or page. You have to create files and stuff - see how technical I am;)

Here is a link to what WordPress says about this:

http://codex.wordpress.org/Using_Javascript

If anyone comes up with a quick and easy way to do this, that would be great. Otherwise until then I can't use this software:(

Thanks,

Travis

T202Wes wrote:
Are you familiar with PHP, it may be easier to embed it in your theme, and have the PHP CODE only show on the correct page.

If you don't know what I mean I can post an example.

just tell me the page on your site that it will be displayed on

for instance

mydomain.com/thispageiswhereIwanttheJScode

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Aug 8th, 2008 at 12:02am Post subject: Re: Prosper and Wordpress Reply with quote

I sent this to someone this should help

Quote:

Ok use this code, .

<?

//set navigation variable

$navigation = $_SERVER['REQUEST_URI'];

$navigation = explode('/', $navigation);

foreach( $navigation as $key => $row ) {

$split_chars = preg_split('/\?{1}/',$navigation[$key],-1,PREG_SPLIT_OFFSET_CAPTURE);

$navigation[$key] = $split_chars[0][0];

}

if (!$navigation[1]) { ?> JAVASCRIPT CODE HERE <? }

?>

and this is to be placed in your footer.php or whatever php file it is. this displays the JAVASCRIPT CODE if it is only on the HOMEPAGE.

Back to top
affmarketjav


Joined: Oct 21st, 2008
Posts: 6

Post Posted: Jan 3rd, 2009 at 8:56pm Post subject: Re: Prosper and Wordpress Reply with quote

So any simple way to place javascript in a post?

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Jan 4th, 2009 at 4:07am Post subject: Re: Prosper and Wordpress Reply with quote

It depends on the theme you are using and the way its coded. Not exactly simple, just gotta test different places where it'll work best with the theme you're using.

Back to top
dangerlarson
Website Skype AIM


Joined: Mar 24th, 2008
Posts: 11

Post Posted: Apr 5th, 2009 at 5:35pm Post subject: Re: Prosper and Wordpress Reply with quote

T202Wes wrote:
I sent this to someone this should help

Quote:

Ok use this code, .

<?

//set navigation variable

$navigation = $_SERVER['REQUEST_URI'];

$navigation = explode('/', $navigation);

foreach( $navigation as $key => $row ) {

$split_chars = preg_split('/\?{1}/',$navigation[$key],-1,PREG_SPLIT_OFFSET_CAPTURE);

$navigation[$key] = $split_chars[0][0];

}

if (!$navigation[1]) { ?> JAVASCRIPT CODE HERE <? }

?>

and this is to be placed in your footer.php or whatever php file it is. this displays the JAVASCRIPT CODE if it is only on the HOMEPAGE.

worked like a charm for me & I couldn't get any of the other suggestions to work - thanks!

Back to top
groneg
Website


Joined: Jun 18th, 2008
Posts: 2

Post Posted: Apr 29th, 2009 at 11:51am Post subject: Re: Prosper and Wordpress Reply with quote

How can I test whether or not the keyword is captured with this setup? With non wordpress setups I just append an ?s=#### to the url and then can see that it works from the spy view.

Thanks!

Back to top
jmoya


Joined: Apr 4th, 2009
Posts: 7

Post Posted: Apr 29th, 2009 at 5:43pm Post subject: Re: Prosper and Wordpress Reply with quote

Hey, anyone knows how to implement the js code on a per post basis ?

I have a wp theme where I can put the code but the page refreshes for every tracking coded I have in there so I rather do it on a per post basis.

Joe

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Apr 30th, 2009 at 5:36pm Post subject: Re: Prosper and Wordpress Reply with quote

You have to go in and edit the theme editor page for your post.php or whatever its named base on your theme. There is a section where you can insert the code under the php post it spits out but won't interfere with all the other pages. Each theme is coded differently so you'll have to look for this yourself. I also recommend checking your code validation before doing this to ensure the theme you're using is 100% validated. Lots of users have issues with wordpress if its not validated.

Back to top
affiliatep0w3r


Joined: Apr 7th, 2009
Posts: 17

Post Posted: May 4th, 2009 at 1:47pm Post subject: Re: Prosper and Wordpress Reply with quote

I am also doing private pages in WP and placing the JS p202 is giving me works just fine.

So the reason for it not messing up my theme could be one of the following:

a) theme well coded

b) installed exec-php (plugin to get php-code to work, dunno if it also did something to JS), turned of visual editor (the php-plugin tells me to turn off the visual editor as this usually messes up the code. If visual ed. messes up php, it might also mess up JS?)

maybe this is of help to someone.

Back to top
jmoya


Joined: Apr 4th, 2009
Posts: 7

Post Posted: May 4th, 2009 at 9:08pm Post subject: Re: Prosper and Wordpress Reply with quote

Does your JS code works in the post without Inline Javascrip plugin? - only with exec-php ?

Have you checked your stats at Prosper to make sure it is tracking correctly?

Would like to know because in my case it give me problem sometimes.

Thanks friend,

Joe

Back to top
affiliatep0w3r


Joined: Apr 7th, 2009
Posts: 17

Post Posted: May 5th, 2009 at 2:49am Post subject: Re: Prosper and Wordpress Reply with quote

alright, it´s not screwing up me theme, however, my stats are off everyday:

I pay for 100 clicks in adwords, only ~80 show up in prosper.

I send 80 clicks to merchant, only ~60 show up in prosper.

Could that be because my JS is not working properly?

Back to top
Post new topic Reply to topic Page 1 of 21 2 Next Last

Creative Commons License This work (Prosper202, Tracking202 and Export202) is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.