Title: PHP Code in Snippet / Code Textarea?
Last modified: September 17, 2020

---

# PHP Code in Snippet / Code Textarea?

 *  Resolved [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-code-in-snippet-code-textarea/)
 * 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](https://wordpress.org/support/users/99robots/)
 * (@99robots)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-code-in-snippet-code-textarea/#post-13510526)
 * [@nicmare](https://wordpress.org/support/users/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](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-code-in-snippet-code-textarea/#post-13512668)
 * 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](https://wordpress.org/support/users/99robots/)
 * (@99robots)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-code-in-snippet-code-textarea/#post-13512955)
 * [@nicmare](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)
 * [Header Footer Code Manager](https://wordpress.org/plugins/header-footer-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [99robots](https://wordpress.org/support/users/99robots/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-code-in-snippet-code-textarea/#post-13512955)
 * Status: resolved