PAGE Methods

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>'