echoing urls for feedburner tracking
- 3biano
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
17 years 7 months ago #1360
by 3biano
hello Sakic
i would like to track my joomla blog with feedburner and to this i've got to embed the following code in the index template:
<script src=" feeds.feedburner.com/~s/trebiano?i=POST-URL-HERE " type="text/javascript" charset="utf-8"></script>
My question is: which php-echo-code should i replace to "POST-URL-HERE" to catch the sefAdvance urls of each single page ? More generally, i mean, which variable is containg the current rewrited url of a page with sefAdvance ? I think i've get to echo exactly this thing...
Many thanks in advance for an helpful tip
Best regards
3biano
i would like to track my joomla blog with feedburner and to this i've got to embed the following code in the index template:
<script src=" feeds.feedburner.com/~s/trebiano?i=POST-URL-HERE " type="text/javascript" charset="utf-8"></script>
My question is: which php-echo-code should i replace to "POST-URL-HERE" to catch the sefAdvance urls of each single page ? More generally, i mean, which variable is containg the current rewrited url of a page with sefAdvance ? I think i've get to echo exactly this thing...
Many thanks in advance for an helpful tip
Best regards
3biano
Please Log in or Create an account to join the conversation.
- Saka
-
- Offline
- Administrator
-
17 years 7 months ago #1361
by Saka
Emir Sakic
www.sakic.net
It would normally be $_SERVER but by that point it has already been rewriten to non-sef URL.
It would be best to edit index.php and save $_SERVER to some global variable before inclusion of sef.php, and then echoing that variable in the template.
It would be best to edit index.php and save $_SERVER to some global variable before inclusion of sef.php, and then echoing that variable in the template.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- 3biano
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
17 years 7 months ago #1362
by 3biano
THANK YOU MAN !
Your suggestion was very precious:
i've added
in index.php of the root...
...then i could get the url echoed in the template index.php with:
Your suggestion was very precious:
i've added
$passing_url = $_SERVER['REQUEST_URI'];
$_GET['passing_url '] = $passing_url ;
in index.php of the root...
...then i could get the url echoed in the template index.php with:
<?php echo $mosConfig_live_site;?><?php echo $_GET['passing_url'];?>
Please Log in or Create an account to join the conversation.