| Author |
Message |
jsmenter
Joined: Mar 30th, 2008
Posts: 17
|
|
Posted: Jun 16th, 2008 at 5:35pm
Post subject: Prosper and Wordpress
|
|
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
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Jun 16th, 2008 at 9:14pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Mar 30th, 2008
Posts: 17
|
|
Posted: Jun 17th, 2008 at 7:26am
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Jun 17th, 2008 at 1:29pm
Post subject: Re: Prosper and Wordpress
|
|
If you have an offer per post, why not put the corresponding js in the post?
|
|
|
Back to top
|
|
|
|
jsmenter
Joined: Mar 30th, 2008
Posts: 17
|
|
Posted: Jun 17th, 2008 at 3:33pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Jun 17th, 2008 at 3:36pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Mar 30th, 2008
Posts: 17
|
|
Posted: Jun 17th, 2008 at 8:05pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Jun 17th, 2008 at 9:57pm
Post subject: Re: Prosper and Wordpress
|
|
ah... let me know how that goes
|
|
|
Back to top
|
|
|
|
T202Wes
Joined: Oct 20th, 2007
Posts: 4342
|
|
Posted: Jun 18th, 2008 at 4:47am
Post subject: Re: Prosper and Wordpress
|
|
|
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
|
|
Posted: Jun 20th, 2008 at 12:14pm
Post subject: Re: Prosper and Wordpress
|
|
I have the same problem. It messes up my theme.
|
|
|
Back to top
|
|
|
|
T202Wes
Joined: Oct 20th, 2007
Posts: 4342
|
|
Posted: Jun 20th, 2008 at 12:49pm
Post subject: Re: Prosper and Wordpress
|
|
|
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
|
|
Posted: Jul 30th, 2008 at 7:28pm
Post subject: Re: Prosper and Wordpress
|
|
Did anyone figure this out? It is messing up my theme as well.
|
|
|
Back to top
|
|
|
|
ohmichea
Joined: Jul 28th, 2008
Posts: 2
|
|
Posted: Jul 30th, 2008 at 7:37pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Oct 20th, 2007
Posts: 4342
|
|
Posted: Jul 31st, 2008 at 1:24am
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: Aug 7th, 2008 at 11:24pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Oct 20th, 2007
Posts: 4342
|
|
Posted: Aug 8th, 2008 at 12:02am
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: Jan 3rd, 2009 at 8:56pm
Post subject: Re: Prosper and Wordpress
|
|
So any simple way to place javascript in a post?
|
|
|
Back to top
|
|
|
|
T202Steven
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Jan 4th, 2009 at 4:07am
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Mar 24th, 2008
Posts: 11
|
|
Posted: Apr 5th, 2009 at 5:35pm
Post subject: Re: Prosper and Wordpress
|
|
|
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
Joined: Jun 18th, 2008
Posts: 2
|
|
Posted: Apr 29th, 2009 at 11:51am
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: Apr 29th, 2009 at 5:43pm
Post subject: Re: Prosper and Wordpress
|
|
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
Joined: Dec 4th, 2007
Posts: 2400
|
|
Posted: Apr 30th, 2009 at 5:36pm
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: May 4th, 2009 at 1:47pm
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: May 4th, 2009 at 9:08pm
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
Posted: May 5th, 2009 at 2:49am
Post subject: Re: Prosper and Wordpress
|
|
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
|
|
|
|