echoing urls for feedburner tracking

17 years 5 days 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

Please Log in or Create an account to join the conversation.

17 years 5 days ago #1361 by Saka
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.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 4 days ago #1362 by 3biano
THANK YOU MAN !

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.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch