• Hi There,

    I have code that I want to fire based on GEOs. For example, in Elementor we have a “Custom Code” that will fire a header code (think Facebook Pixel and Google Pixel) based on the page that we want to fire it.

    however, What i want to do is fire a Pixel based on Geo Location – say Colorado or Texas and only user in those States will get this Code.

    Does that make sense??

    I can’t find a plugin that does that and your software so far is great for that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    What you will use? PHP custom code, shortcode, JS or you want to just show/hide elements?

    Thread Starter bwjohnson26

    (@bwjohnson26)

    it would be JS/HMTL Code like Facebook Pixel per se, not Facebook Page. I would ideally like to use the Elementor Custom Code section to add code via the header.

    However, if we need to connect a different code tool to do this, that is fine, but really trying to fire code only to people who visit our website organically from the states that we do business.

    Plugin Author Ivijan-Stefan Stipic

    (@ivijanstefan)

    Have you tried using shortcodes?

    [cfgeo include="New York"] [pixel-shortcode] [/cfgeo]

    Also you can use JavaScript: https://cfgeoplugin.com/documentation/advanced-usage/javascript-integration

    Or CSS property like:

    .cfgeo-show-in-us

    CSS property you can find in your plugin installation explained under Geo Controller page in admin.

    Thread Starter bwjohnson26

    (@bwjohnson26)

    That would be tied a single page, I am looking to apply the Pixel on all page but only fire when they are in a GEO.

    I “HAVE” to figure this out without using GTM, because the codes don’t always work in GTM.

    With that being said the redirect based on GEOs work just fine, but I Need an way to fire a Pixel based on GEO too.

    Thread Starter bwjohnson26

    (@bwjohnson26)

    but I am not a software developer, so I need something that caveman can use lol

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fire Events/HTML Code Based on GEO’ is closed to new replies.