PAGE Methods
Including templates and objects
content(), module(), object()Request content via AJAX
collect(), complete(), elements(), element()Insert code (CSS, JS, HTML)
style(), script(), meta(), bottom(), tracking()Template data
directory(), views(), details(), preview(), charset(), language(), error()Reading and writing META data
title(), topic(), descr(), claim(), robots(), keywords()HTTP header
mime(), status(), expires(), header(), download()
tracking()
Add tracking code to page footer. The tracking code will not be added to frontend if user is not logged into the backend (meaning that the user belongs to the group of page owners).
null tracking( string code )
Return
The function will not return any value, it just adds the code to the end of the page.
Parameter
Description
codeTracking code.
Add tracking code
$PAGE->tracking("<script>/*PUT TRACKING CODE HERE*/</script>")
RETURN: '<script>/*PUT TRACKING CODE HERE*/</script>'