WPIntell

Source evidence

Fire Events/HTML Code Based on GEO

Geo Controller · support · 2023-08-22T15:51:00+00:00

complaintsentiment
mediumseverity
0.86relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 9 rows with source links

22.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

7 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bwjohnson26 unresolved
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. What you will use? PHP custom code, shortcode, JS or you want to just show/hide elements? 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. 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. 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. but I am not a software developer, so I need something that caveman can use lol

Comments

5 shown
Ivijan-Stefan Stipic 2023-08-22T17:01:00+00:00

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

bwjohnson26 2023-08-22T17:03:00+00:00

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.

Ivijan-Stefan Stipic 2023-08-24T06:50:00+00:00

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.

bwjohnson26 2023-08-28T20:24:00+00:00

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.

bwjohnson26 2023-08-28T20:25:00+00:00

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