Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Oct 2012, 03:50 PM   #1
New Warrior Member
 
Join Date: 2008
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default
Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

Ok. I really need some help here, and I need it explained very simply.

Here goes:

Right now I'm using static html templates for my landing page.
Here i use code like this:

Code:
<?php
$key=$_GET['key'];
?>
At the top of the page. And then when I create links on my page I use this code for exmaple:

Code:
website.com/page.html?<?php echo $_GET['key']; ?>">
Now I can send traffic to my landing page WITH a tracking code for exmaple:

Code:
website.com/pag1.php?key=trackingkey
My question is how can this be done with wordpress !???
How in the world can I with this in wordpress?

THE PROBLEM....

Is of course that if I try and link in to my wordpress site with a permalink like:

Code:
website.com/pag1.php?key=trackingkey

Then of course wordpress just try and find this page that doesn't exist and gives me a 404 - error page...........

This is driving me crazy....

How in the world can I then track keywords for permalinks that I send traffic to into my wordpress site???

I don't expect to get answers from beginners in wordpress to this question, but hopefully there is someone here, that can tell me what to do.

MANY THANKS

trelog is offline  
Unread 28th Oct 2012, 04:33 PM   #2
Active Warrior
War Room Member
 
Join Date: 2012
Posts: 54
Thanks: 1
Thanked 10 Times in 9 Posts
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

I suggest you actually create a file (lets say redirect.php) and instead of opening ebsite.com/pag1.php?key=trackingkey send the traffic to website.com/redirect.php?key=trackingkey .... then you analyze the key inside of that file and you make a redirect from there...

Alternatively you can make the same thing with .htaccess too.

WebThinker is offline  
Unread 28th Oct 2012, 05:04 PM   #3
New Warrior Member
 
Join Date: 2008
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

I'm not sure you understood what I need to accomplish with this or not.

The whole point is to pre populate the tracking code from the permalink,

into an affiliate link on my webpage.

So that it grabs tacking code from the url, for example website.com/pag1.php?key=trackingkey

and insert this tracking code in my affiliate link like for exmaple this:

affilatesite.com/affiliateid123?sub=trackingkey

PPC Affiliate experts here know what I mean and need to accomplish with wordpress..

Please please someone help me with a solution for this.

There is probably a very simple solution for this also, only if you know about it that is...

trelog is offline  
Unread 28th Oct 2012, 06:32 PM   #4
Social Apps Made Easy
War Room Member
 
FirstSocialApps's Avatar
 
Join Date: 2012
Location: Mooresville, NC
Posts: 913
Thanks: 231
Thanked 259 Times in 213 Posts
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

Im not a big WP guy so I cant give a WP solution directly, however you could do this.

1) Create a PHP file to send them to
2) PHP reads the GET and then sets a SESSION (or even cookie)
3) Redirect the the correct URL / No GET data, just the URL
4) In you WP code you are adding, instead of reading the GET have it read the SESSION (or cookie)

FirstSocialApps is offline  
Unread 28th Oct 2012, 06:45 PM   #5
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

If i understand you correctly (i'm not sure i do though), this might help:

Using custom URL parameters in Wordpress ~ Webopius - Web design | Project Management | SEO | Graphic Design | E-Commerce | Content Management
phpg is offline  
Unread 29th Oct 2012, 08:17 AM   #6
HyperActive Warrior
 
Join Date: 2011
Posts: 133
Thanks: 1
Thanked 7 Times in 6 Posts
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

You would have to create a plugin to catch all the GET parameters. Just override wordpress permalink function and you can add your own custom logic
Dong Lee is offline  
Unread 29th Oct 2012, 09:18 AM   #7
Active Warrior
 
Join Date: 2012
Posts: 97
Thanks: 12
Thanked 12 Times in 11 Posts
Default
Re: Using Wordpress As Landingpage - Tracking Code in Permalink Doesn't work - please help!?
Share on: 
fb share twitter share gplus share more share

For wordpress - check in admin
Settings -> Permalinks

For Default permalinks setting affiliate id will look like
http://yourwebsite.com/?p=123&affiliateid=321

For all the others including the Post Name pemalinks settings affiliate id will look like
http://yourwebsite.com/sample-post/?affiliateid=321

All these work, no 404 error.

To capture and process the id via WP blog, you will have to create a small API.
viescripts is offline  
Closed Thread


Bookmarks

Tags
code, landingpage, tracking, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:42 AM.