html - Prevent iframe loading again after going back in history -


for ecommerce tracking in virtuemart (joomla extension, latest versions), except using google's, have use tracking code of local company.

their code iframe this

<iframe src="http://...v=<?php echo $total; ?>"></iframe> 

this code on "thank page" of virtuemart track order information.

if refresh thank page, you're redirected homepage. if left "thank page" , went in browser history, you'd thank page again , iframe executed again - @ least that's think reason orders tracked twice.

is there simple solution issue?

add iframe dynamically either using javascript or php shows if has gone there directly.

here's how detect if has landed on page via button...

how detect if user has got page using button?

if have, don't show iframe.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -