Friday Madness

40%

Grab Discount
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

FaceBook Pixel fbclid

1 week 20 hours ago #1

  • Steve Ballard's Avatar
  • Steve Ballard
  • Posts: 2
Hi,

We have come across a problem whereby the BAGallery system plugin is removing fbclid from the query string.
This is an issue as it is used by FaceBook as a tracking code.
We commented out the code removing fbclid from the query string and FaceBook was able to track again.

Our galleries still worked, so is this removal of fbclid necessary in the plugin?

/plugins/system/bagallery/bagallery.php
    public function onAfterInitialise()
    {
        $app = JFactory::getApplication();
        if ($app->isSite()) {
            $path = JPATH_ROOT . '/components/com_bagallery/helpers/bagallery.php';
            JLoader::register('bagalleryHelper', $path);
            // if (isset($_GET['fbclid'])) {
                // $url = $_SERVER['REQUEST_URI'];
                // $pos = strpos($url, 'fbclid');
                // $delimiter = $url[$pos - 1];
                // $url = str_replace($delimiter.'fbclid='.$_GET['fbclid'], '', $url);
                // header('Location: '.$url);
            // }
        }
    }

TIA
Steve

1 week 20 hours ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 20435
Hello,
Thank you for contacting us

This will not affect the work of the gallery

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum