Forum Replies Created

Viewing 15 replies - 46 through 60 (of 108 total)
  • Plugin Author shulard

    (@shulard)

    Hello @danzmwl !

    Currently, there is no simple way to interpret shortcodes outside of the page content (by simple I mean without writing custom theme code).

    But you can use the do_shortcode function to interpret a shortcode anywhere in your theme (for example in the footer.php file…).

    Here is an example of the code to be used with the focus item “1” :

    <?= do_shortcode('[mautic type="focus" id="1"]'); ?>

    Plugin Author shulard

    (@shulard)

    Hello @danzmwl,

    This can be a valid example with a field named Country :

    
    add_filter('wpmautic_tracking_attributes', function($attributes) {
        //We ensure the country exists to avoid sending invalid data to Mautic.
        if (isset($_POST['Country']) && !empty($_POST['Country'])) {
            $attributes['country'] = filter_var ( $_POST['Country'], FILTER_SANITIZE_STRING);
        }
    
        return $attributes;
    });
    

    This example will map the field in your form named Country (cf $_POST['Country']) to the field country in Mautic (cf $attributes['country']).
    This will work if your form is submitted using the POST method, but it’s the most common usage.

    This code must be added in your functions.php theme file or inside the plugin code.

    I hope this’ll help ??

    • This reply was modified 5 years, 10 months ago by shulard. Reason: Add mention about theme / plugin edit
    Plugin Author shulard

    (@shulard)

    Hello !

    You can control the data sent to Mautic using the wpmautic_tracking_attributes filter.

    In your theme / plugin you can add something like this :

    add_filter('wpmautic_tracking_attributes', function($attributes) {
        $attributes['new_field'] = 'my value';
    
        return $attributes;
    });
    

    You can add, remove or update the generated attributes before they will be sent to Mautic.

    • This reply was modified 5 years, 11 months ago by shulard.
    Plugin Author shulard

    (@shulard)

    Hello,

    After discussing with a bunch of developers about CloudFlare, you must disable CloudFlare to catch all the URLs in https://exactfunnel.com/marketing.

    Mautic URLs must never be cached by a proxy to ensure every details is accessible in the tracking events.

    I don’t know how you can apply such a configuration in CloudFlare settings, but it must be a solution for your problem.

    Plugin Author shulard

    (@shulard)

    Hello,

    Currently, the tracker event does not contains the user IP address in it’s content. The IP address is not extracted / sent from the WordPress side so we can’t change the tracking script or the plugin code to send a specific IP address.

    I asked some help on the support slack, I’ll update this thread with updates when I’ve some.

    Plugin Author shulard

    (@shulard)

    For sure, this plugin does not change the data which are sent using the tracker event, especially the visitor IP address… This information is extracted from the HTTP Request on the Mautic side and the plugin doesn’t have any effect here.

    The WPMautic is only here to inject the script and allow to track Mautic content from your wordpress website.

    Plugin Author shulard

    (@shulard)

    Hello !

    Mautic is running in the client browser but the visitor IP is retrieve when the tracker script send data to the server. If you have some proxy between the users and the Mautic server this can cause that issue.

    I don’t know how you can tell Mautic to use the CloudFlare spécifique header. Can you tell CloudFlare to fill the Remote Adresse header ?

    I’m not a Clourd Flare specialist, maybe you can ask the same question on Mautic support Forum or Slack (https://www.mautic.org/support/) ? For sure you’ll find another person that already found a solution.

    Since it’s not really a WPMautic issue, I’ll close that thread. You can keep replying here if you have additional details, I’ll try my best to answer.

    Plugin Author shulard

    (@shulard)

    Hello !

    Since the focus item are handled by Mautic directly, there is no way to use some wordpress shortcode in them. If you put a shortcode, wordpress will not have the ability to analyze and render it properly.

    Plugin Author shulard

    (@shulard)

    Hello,

    I’ve just made a little test and the trackers seems sending data to your Mautic instance.

    Here all the sent information :

    adblock: false
    counter: 1
    do_not_track: 1
    email: [email protected]
    fingerprint: 10b064c97f07744bd1335511aac650e6
    firstname: test
    lastname: 
    mautic_device_id: i7w0nxk9stx91o1sx1vgbhz
    page_language: en-US
    page_referrer: productosherbal.com
    page_title: Mi cuenta - Productos Herbalife Espa?a
    page_url: https://productosherbal.com/mi-cuenta/
    platform: MacIntel
    resolution: 1680x1050
    timezone_offset: -60
    wp_alias: test
    wp_registration_date: 2018-12-10
    wp_user: test

    And the Mautic instance responded with a success payload :

    {"success":1,"id":149406,"sid":"i7w0nxk9stx91o1sx1vgbhz","device_id":"i7w0nxk9stx91o1sx1vgbhz","events":[false]}

    I don’t see any trouble in your installation here. The events are triggered on https://mautic.productosherbal.com/mtc/event maybe this URL is not the right one ?

    Are you using the latest Mautic version ?

    • This reply was modified 6 years, 3 months ago by shulard.
    Plugin Author shulard

    (@shulard)

    Hello, plugin maintainer here.

    You are right, the plugin has some issue in the test suite to ensure everything is right in the continuous integration process. But the error pointed on the Github issue is more like a little side effect than a real incompatibility.

    I’ll try to work on that part ASAP and update the README to mark it compatible.

    Have you more details on the error ? Have you some javascript error on invalid HTTP status code ?

    I’ve checked on your website and the Mautic event are sent with valid payloads when navigating through the pages. So I think the plugin is working but I can’t test with a user account.

    Plugin Author shulard

    (@shulard)

    Hello,

    Actually the tracking script is only used on the frontend side of your website. It’s not injected in the WordPress login / register form. But if your user is logged then he go on the website, the plugin must send the following fields if you choose to “track logged users” :

    * wp_user (which is $current_user->user_login)
    * wp_alias (which is $current_user->display_name)
    * wp_registration_date (which is $current_user->user_registered)
    * email
    * firstname
    * lastname

    Plugin Author shulard

    (@shulard)

    Hello,

    Currently no, but there is a GitHub issue opened for that : https://github.com/mautic/mautic-wordpress/issues/62

    I’ll be glad to have some help on it ??. It sticks in the tracker for a long time now…
    The goal is to integrate Mautic API within the plugin so you can interact with Mautic using code (to add contact, or retrieve data…).

    Plugin Author shulard

    (@shulard)

    Hello,

    Your problem seems related to a proxy configuration. Is your website hosted behind a proxy ?

    If so, please ensure that the user IP address is the one used by the website. I think it’s more related to webserver configuration.

    Thanks
    Stéphane

    Plugin Author shulard

    (@shulard)

    Hello,

    Actually when I checked your page, I saw that there is a “cross origin” problem. Your mautic installation is hosted at 35.237.206.4 and your website at curbcall.com.

    In your Mautic configuration, you must allow your website in the “CORS Settings” section. Just put “https://curbcall.com&#8221; in the field.

    Is this helping the form to behave correctly ?

    Plugin Author shulard

    (@shulard)

    Hello,

    I checked your problem today and haven’t found an elegant solution. Actually, the Mautic embed script doesn’t allow to control the fullscreen capabilities of the embedded video.

    When the fullscreen mode is triggered by the browser, the video is not a part of the webpage anymore and the form can’t appear over a full screen video…

    Maybe you can ask some help on the Mautic slack channel. For sure there are others people who have already encountered that issue.

    This is not related to the wordpress plugin implementation which only loads the embed script.

Viewing 15 replies - 46 through 60 (of 108 total)