• Resolved nicmare

    (@nicmare)


    Can i insert some PHP Code to request for url parameter for instance? I need more dynamic code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author 99robots

    (@99robots)

    @nicmare – I think you’re asking for whether this plugin can automatically parse the UTM parameters of a URL. Unfortunately, that is not the purpose behind this plugin.

    If I mis-understood, let me know. For now, I’ll close the ticket as it does not seem to be a support question related to HFCM.

    Regardless, we’re happy to help if you add more clarification.

    Thread Starter nicmare

    (@nicmare)

    indeed i am trying to pass get parameters thru the code. But i found a way with JS:

    <script>
    var url = new URL(window.location.href); var eventaction = url.searchParams.get("eventaction");
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
    	'event': 'gaEvent',
    	'eventCategory': 'Kontaktaufnahme',
    	'eventAction': eventaction, 
    	'eventLabel': 'DE'
    });
    </script>
    Plugin Author 99robots

    (@99robots)

    @nicmare That’s great good luck with that. Scripts work great with our plugin. If you need our help feel free to contact us.
    We will really like to help our users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Code in Snippet / Code Textarea?’ is closed to new replies.