• Resolved wizard71

    (@wizard71)


    After the latest update, 3.4.8.1 to 3.4.9, the codes in Utilities > Tracking codes started to load as text, not as scripts.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello, I have the same error… I had to go back to the previus version. It’s a thing with the new version.

    I hope you can fix it soon.

    Thank you.

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @wizard71 @oizovski

    Sorry to hear you are having this issue.

    We found this is being caused by some recent changes in the Branda plugin to prevent XSS attacks, but since the tracking code needs the script tag our team is reviewing the best approach to keep the site secure and also output the code as it?should.

    Until the new release is done, we suggest downgrading the plugin version or using the tracking codes as a mu-plugin:

    <?php
    add_action('wp_head', 'wpmudev_add_tracking_code');
    function wpmudev_add_tracking_code() {
    	?>
    	<script type="text/javascript">
                // Codes
    	</script>
    	<?php
    }

    You can add the above snippet as a mu-plugin on your?site:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,
    Kris

    Thread Starter wizard71

    (@wizard71)

    What would be the best way to install a downgrade without losing the other codes used in the plugin?

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @wizard71

    1. download previous version from here https://www.ads-software.com/plugins/branda-white-labeling/advanced/
    2. unzip that file
    3. log in to FTP and navigate to /wp-content/plugins/
    4. create folder called “ultimate-branding_new” and upload there all files and folders from unziped file
    5. do not visit WP dashbaord
    6. still at FTP rename “ultimate-branding” to “ultimate-branding_old”
    7. still at FTP rename “ultimate-branding_new” to “ultimate-branding”
    8. visit WP dashboard and see does all works fine
    9. on FTP remove “ultimate-branding_old” folder

    Make sure to do a full site backup before those steps.

    Kind Regards,
    Kris

    You’re seeing your conversion code without the <script> tag surrounding it.

    They broke all javascript capabilities with recent releases stripping this tag from all that code. Anyone with conversion codes, special triggers, or other important javascripts in Branda experienced this recently. After a lot of sites broke, they rolled it back, but with a warning that soon all these sites will break again when they push the tracking-codes only change…

    Most people who know their way around ads and analytics use tracking codes and tags. This is going to break a lot of websites.

    This is mostly what a lot of us used Branda for – it allowed developers to provide a space for marketers to easily insert scripts without needing to know PHP or try to edit templates, and allowed them to keep these well-organized.

    Branda also allowed us an easy way to have certain codes load on certain pages or page types. Lots of custom programming to do to get that effect and now marketing is going to have to bother us with each and every script change.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @wizard71 ,

    We haven’t heard from you for some time now, so it looks like you don’t require our further assistance.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Utilities > Tracking Codes shows script’ is closed to new replies.