Plugin Directory

Changeset 1682630


Ignore:
Timestamp:
06/21/2017 01:17:38 PM (9 years ago)
Author:
piwikpro
Message:

Version 2.1.0

Location:
piwik-pro-tag-manager-integration
Files:
52 added
10 edited

Legend:

Unmodified
Added
Removed
  • piwik-pro-tag-manager-integration/trunk/AUTHORS.txt

    r1571169 r1682630  
    33Piotr Niewiadomski <http://piotr.press>
    44
    5 Great thanks to Clearcode <https://clearcode.cc> for allowing releasing Piwik PRO Tag Manager integration plugin as free software!
     5Great thanks to Piwik PRO <https://piwik.pro> for allowing releasing Piwik PRO Tag Manager integration plugin as free software!
  • piwik-pro-tag-manager-integration/trunk/README.txt

    r1605209 r1682630  
    33Tags: Piwik PRO, Piwik, tag manager, Piwik Tag Manager, Piwik PRO Tag Manager, analytics
    44Requires at least: 4.7
    5 Tested up to: 4.7.2
     5Tested up to: 4.8
    66Stable tag: trunk
    77License: GPLv3
     
    1414The WordPress Piwik PRO Tag Manager integration plugin allows you to include both the synchronous and asynchronous tags. When triggering the tags in a synchronous way, it adds the snippets of Piwik PRO Tag Manager’s code to the HTML head section. If you trigger them asynchronously,  it places them directly after the opening body HTML tag.
    1515
    16 All you have to do is provide your Piwik PRO Tag Manager server’s URL and the UUID of the container.
     16All you have to do is provide your Piwik PRO Tag Manager server’s URL and the ID of the website.
    1717
    1818_To learn more about which type of tags you should use (e.g. asynchronous or synchronous tags), read the [Tags](https://piwik.pro/docs/tag-manager-guides/tags/ "Piwik PRO Tag Manager - Tags Documentation") section in the Piwik PRO Tag Manager's documentation._
     
    6565= Once Activated =
    6666
    67 Visit 'Settings > Piwik PRO Tag Manager Integration', add your server's URL in the 'Server URL' field, fill in the 'Container UUID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet.
     67Visit 'Settings > Piwik PRO Tag Manager Integration', add your server's URL in the 'Server URL' field, fill in the 'Website ID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet.
    6868
    6969**Please note**
     
    105105== Screenshots ==
    106106
    107 1. **WordPress General Settings** - Visit 'Settings > Piwik PRO Tag Manager integration', add your server's URL in the 'Server URL' field, fill in the 'Container UUID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet (`wp_head` is the preferred location for firing synchronous tags – e.g. for A/B testing and `wp_head_open` is the preferred location for firing asynchronous tags).
    108 2. **Piwik PRO Tag Manager Containers Settings** - Visit 'Piwik PRO Tag Manager > Containers' and take note of the  Container UUID you want to implement into your site. Then, write that container UUID in the 'Container UUID' field in your WordPress Dashboard.
     1071. **WordPress General Settings** - Visit 'Settings > Piwik PRO Tag Manager integration', add your server's URL in the 'Server URL' field, fill in the 'Website ID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet (`wp_head` is the preferred location for firing synchronous tags – e.g. for A/B testing and `wp_head_open` is the preferred location for firing asynchronous tags).
     1082. **Piwik PRO Tag Manager Containers Settings** - Visit 'Piwik PRO Tag Manager > Containers' and take note of the  Website ID you want to implement into your site. Then, write that Website ID in the 'Website ID' field in your WordPress Dashboard.
    109109
    110110== Changelog ==
     111
     112= 2.1.0 =
     113*Release date: 21.06.2017*
     114
     115* Changed ABSPATH to WP_CONTENT_DIR & WP_CONTENT_URL to support roots/bedrock (reported by pimplaatsman).
     116* Changed Container UUID to Website ID.
     117* Added support to Piwik PRO Tag Manager version < 1.16.0
     118* Updated snippets templates to support Piwik PRO Marketing Suite.
    111119
    112120= 2.0.0 =
  • piwik-pro-tag-manager-integration/trunk/includes/body.php

    r1605209 r1682630  
    8989                'url'       => $this->url,
    9090                'container' => $this->container,
    91                 'time'      => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : ''
     91                'time'      => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
     92                'snippet'   => $this->snippet
    9293            ) );
    9394        }
    9495
    9596        public function get_file( $pattern = self::SCRIPT ) {
    96             return ABSPATH . $this->get_dir() . sprintf( $pattern, $this->container );
     97            return WP_CONTENT_DIR . $this->get_dir() . sprintf( $pattern, $this->container );
    9798        }
    9899
     
    105106                $cache )
    106107                $url = $this->rewrite ?
    107                     untrailingslashit( get_site_url( null, $this->get_rewrite() ) ) :
    108                     untrailingslashit( get_site_url( null, $this->get_dir() ) );
     108                    untrailingslashit( $this->get_domain( $this->get_rewrite(), true ) ) :
     109                    untrailingslashit( WP_CONTENT_URL . $this->get_dir() );
    109110            else $url = $this->url;
    110111
     
    133134            if ( ! $content = Files::get_content( $this->get_noscript( false ) )  ) return false;
    134135
    135             Files::mkdir( ABSPATH . $this->get_dir() . '/' . $this->container );
     136            Files::mkdir( WP_CONTENT_DIR . $this->get_dir() . '/' . $this->container );
    136137            Files::put_content( $this->get_file( self::NOSCRIPT ), $content );
    137138        }
  • piwik-pro-tag-manager-integration/trunk/includes/head.php

    r1605209 r1682630  
    3838
    3939            return Tag_Manager::get_template( 'head', array(
    40                 'script' => $script,
    41                 'time'   => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : ''
     40                'script'  => $script,
     41                'time'    => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
     42                'snippet' => $this->snippet
    4243            ) );
    4344        }
     
    7172                $pos     = stripos( $content, '</head>' );
    7273                $content = substr_replace( $content, Tag_Manager::get_template( 'head', array(
    73                     'script' => $this->get_ver() ? add_query_arg( 'ver', $this->get_ver(), $this->get_script() ) : $this->get_script(),
    74                     'time'   => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : ''
     74                    'script'  => $this->get_ver() ? add_query_arg( 'ver', $this->get_ver(), $this->get_script() ) : $this->get_script(),
     75                    'time'    => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
     76                    'snippet' => $this->snippet
    7577                ) ), $pos, 0 );
    7678            }
  • piwik-pro-tag-manager-integration/trunk/includes/section.php

    r1605209 r1682630  
    3737        protected $rewrite      = false;
    3838        protected $ver          = false;
     39        protected $snippet      = '1.16.0';
    3940
    4041        protected function __construct() {
     
    7980            }
    8081
     82            $settings['snippet'] = ! empty( $option['snippet'] ) ? '1.16.0' : '1.15.3';
     83
    8184            return $settings;
    8285        }
     
    9093            if ( ! $content = Files::get_content( $this->get_script( false ) )  )                  return false;
    9194
    92             Files::mkdir( ABSPATH . $this->get_dir() );
     95            Files::mkdir( WP_CONTENT_DIR . $this->get_dir() );
    9396            Files::put_content( $this->get_file(), $content );
    9497        }
    9598
    9699        public function clear() {
    97             Files::rmdir( ABSPATH . $this->get_dir() );
    98             Files::mkdir( ABSPATH . $this->get_dir() );
     100            Files::rmdir( WP_CONTENT_DIR . $this->get_dir() );
     101            Files::mkdir( WP_CONTENT_DIR . $this->get_dir() );
    99102        }
    100103
     
    103106            if ( Settings::instance()->get_tab() !== $this->get_class() )             return;
    104107
    105             $dir = ABSPATH . $this->get_dir();
     108            $dir = WP_CONTENT_DIR . $this->get_dir();
    106109            $code = Tag_Manager::get_template( 'code', array( 'content' => $dir ) );
    107110            if     ( ! Files::file_exists( $dir ) ) echo Tag_Manager::get_template( 'notice', array( 'content' => sprintf( Tag_Manager::__( 'Dir: %s does not exists!' ), $code ) ) );
     
    130133                    'before'  => 'http(s)://',
    131134                    'after'   => '',
    132                     'desc'    => sprintf(
    133                         Tag_Manager::__( 'Learn more about %s on the Piwik PRO Tag Manager documentation page.' ),
    134                         '<a href="https://piwik.pro/docs/tag-manager-guides/getting-started/" target="_blank">' . Tag_Manager::__( 'Getting started' ) . '</a>'
    135                     )
    136                 )
    137             );
    138 
    139             add_settings_field( static::class .'\container', Tag_Manager::__( 'Container UUID' ), array(
     135                    'desc'    => ''
     136                )
     137            );
     138
     139            add_settings_field( static::class .'\container', Tag_Manager::__( 'Website ID' ), array(
    140140                    $this,
    141141                    'input'
     
    147147                    'before'  => '',
    148148                    'after'   => '',
    149                     'desc'    => sprintf(
    150                         Tag_Manager::__( 'Learn more about %s on the Piwik PRO Tag Manager documentation page.' ),
    151                         '<a href="https://piwik.pro/docs/tag-manager-guides/containers/" target="_blank">' . Tag_Manager::__( 'Containers' ) . '</a>'
    152                     )
     149                    'desc'    => ''
    153150                )
    154151            );
     
    226223                    'desc'    => sprintf(
    227224                        Tag_Manager::__( 'Use this option if you want to serve the script from a cached file' ) . ':<br />' .
    228                         Tag_Manager::get_template( 'code', array( 'content' => $this->get_domain( $this->get_dir(), true ) ) )
     225                        Tag_Manager::get_template( 'code', array(
     226                                'content' => $this->get_domain( str_replace( $this->get_domain( '', true ) , '', WP_CONTENT_URL ) . $this->get_dir(), true )
     227                            )
     228                        )
    229229                    )
    230230                )
     
    275275                'domain'  => $domain,
    276276                'rewrite' => $this->get_rewrite(),
    277                 'dir'     => $this->get_dir()
     277                'dir'     => str_replace( $this->get_domain( '', true ) , '', WP_CONTENT_URL ) . $this->get_dir()
    278278            ) );
    279279
     
    320320                    'desc'    => sprintf(
    321321                        Tag_Manager::__( 'Delete all the cached files and directories from' ) . ':<br />' .
    322                         Tag_Manager::get_template( 'code', array( 'content' => ABSPATH . $this->get_dir() ) )
     322                        Tag_Manager::get_template( 'code', array( 'content' => WP_CONTENT_DIR . $this->get_dir() ) )
    323323                    )
    324324                )
     
    339339                        Tag_Manager::__( "Add the %s parameter in the query string for the scripts' url with the timestamp." ),
    340340                        Tag_Manager::get_template( 'code', array( 'content' => 'ver' ) )
     341                    )
     342                )
     343            );
     344
     345            add_settings_field( static::class . '\snippet', Tag_Manager::__( 'Snippet' ), array(
     346                $this,
     347                'input'
     348            ), $this->get_class(), $this->get_class(), array(
     349                    'type'    => 'checkbox',
     350                    'class'   => 'snippet',
     351                    'name'    => static::class . '[snippet]',
     352                    'value'   => $snippet = '1.16.0',
     353                    'checked' => version_compare( $this->snippet, $snippet, '>=' ) ? 'checked' : '',
     354                    'before'  => '',
     355                    'after'   => 'Piwik PRO Tag Manager ' . Tag_Manager::__( 'version' ) . ' >= ' . $snippet,
     356                    'desc'    => sprintf(
     357                        Tag_Manager::__( "Uncheck this option to enable support for older versions" )
    341358                    )
    342359                )
     
    426443                $cache )
    427444                $url = $this->rewrite ?
    428                     untrailingslashit( get_site_url( null, $this->get_rewrite() ) ) :
    429                     untrailingslashit( get_site_url( null, $this->get_dir() ) );
     445                    untrailingslashit( $this->get_domain( $this->get_rewrite(), true ) ) :
     446                    untrailingslashit( WP_CONTENT_URL . $this->get_dir() );
    430447            else $url = $this->url;
    431448
     
    448465
    449466        public function get_file() {
    450             return ABSPATH . $this->get_dir() . sprintf( static::SCRIPT, $this->container );
     467            return WP_CONTENT_DIR . $this->get_dir() . sprintf( static::SCRIPT, $this->container );
    451468        }
    452469
    453470        public function get_dir() {
    454             $dir = 'wp-content/cache';
     471            $dir = '/cache';
    455472            if ( is_multisite() ) {
    456473                $site = (array)get_site();
  • piwik-pro-tag-manager-integration/trunk/languages/piwik-pro-tag-manager-integration-pl_PL.po

    r1605209 r1682630  
    22msgstr ""
    33"Project-Id-Version: Piwik PRO Tag Manager Integration\n"
    4 "POT-Creation-Date: 2017-02-27 17:17+0100\n"
    5 "PO-Revision-Date: 2017-02-27 17:17+0100\n"
     4"POT-Creation-Date: 2017-06-20 18:37+0200\n"
     5"PO-Revision-Date: 2017-06-20 18:38+0200\n"
    66"Last-Translator: Piotr Niewiadomski <[email protected]>\n"
    77"Language-Team: Piwik PRO | Piotr Niewiadomski <[email protected]>\n"
     
    4747msgstr "Błędny kod odpowiedzi"
    4848
    49 #: includes/section.php:107
     49#: includes/section.php:110
    5050#, php-format
    5151msgid "Dir: %s does not exists!"
    5252msgstr "Folder: %s nie istnieje!"
    5353
    54 #: includes/section.php:108
     54#: includes/section.php:111
    5555#, php-format
    5656msgid "Dir: %s is not writable!"
    5757msgstr "Folder: %s nie ma uprawnień do zapisu!"
    5858
    59 #: includes/section.php:109
     59#: includes/section.php:112
    6060#, php-format
    6161msgid "Dir: %s is not readable!"
    6262msgstr "Folder: %s nie ma uprawnień do odczytu!"
    6363
    64 #: includes/section.php:111
     64#: includes/section.php:114
    6565msgid "Server not supports URL rewriting."
    6666msgstr "Serwer nie obsługuje przepisywania adresów."
    6767
    68 #: includes/section.php:122
     68#: includes/section.php:125
    6969msgid "Server URL"
    7070msgstr "URL Serwera"
    7171
    72 #: includes/section.php:133 includes/section.php:150
    73 #, php-format
    74 msgid "Learn more about %s on the Piwik PRO Tag Manager documentation page."
    75 msgstr "Dowiedz się więcej o %s na stronie dokumentacji Piwik PRO Tag Manager."
    76 
    77 #: includes/section.php:134
    78 msgid "Getting started"
    79 msgstr "Jak zacząć"
    80 
    8172#: includes/section.php:139
    82 msgid "Container UUID"
    83 msgstr "UUID Kontenera"
    84 
    85 #: includes/section.php:151
    86 msgid "Containers"
    87 msgstr "Kontenerach"
    88 
    89 #: includes/section.php:156
     73msgid "Website ID"
     74msgstr "Identyfikator Strony"
     75
     76#: includes/section.php:153
    9077msgid "Method"
    9178msgstr "Metoda"
    9279
    93 #: includes/section.php:168
     80#: includes/section.php:165
    9481#, php-format
    9582msgid "Paste the following code after %s tag in your theme: %s."
    9683msgstr "Wklej następujący kod po znaczniku %s Twojego motywu: %s."
    9784
    98 #: includes/section.php:169
     85#: includes/section.php:166
    9986msgid "Preferred method."
    10087msgstr "Preferowana metoda."
    10188
    102 #: includes/section.php:188
     89#: includes/section.php:185
    10390#, php-format
    10491msgid ""
     
    10996"motywie."
    11097
    111 #: includes/section.php:189
     98#: includes/section.php:186
    11299#, php-format
    113100msgid "It will add snippet in %s section using %s."
    114101msgstr "Skrypt zostanie dodany w sekcji %s przy użyciu %s."
    115102
    116 #: includes/section.php:197
     103#: includes/section.php:194
    117104msgid "Dependencies"
    118105msgstr "Zależności"
    119106
    120 #: includes/section.php:208
     107#: includes/section.php:205
    121108#, php-format
    122109msgid "Comma separated %s handles. Works only with %s method."
     
    125112"%s."
    126113
    127 #: includes/section.php:215
     114#: includes/section.php:212
    128115msgid "Cache"
    129116msgstr "Pamięć podręczna"
    130117
    131 #: includes/section.php:225 includes/section.php:337
     118#: includes/section.php:222 includes/section.php:337
    132119msgid "enable/disable"
    133120msgstr "włącz/wyłącz"
    134121
    135 #: includes/section.php:227
     122#: includes/section.php:224
    136123msgid "Use this option if you want to serve the script from a cached file"
    137124msgstr "Użyj tej opcji jeśli chcesz serwować skrypt z pamięci podręcznej."
     
    191178msgstr "Dodaj parametr %s ze znacznikiem czasu do adresu url skryptu."
    192179
    193 #: includes/section.php:349 includes/settings.php:64
     180#: includes/section.php:345
     181msgid "Snippet"
     182msgstr "Snippet"
     183
     184#: includes/section.php:355
     185msgid "version"
     186msgstr "wersja"
     187
     188#: includes/section.php:357
     189msgid "Uncheck this option to enable support for older versions"
     190msgstr "Odznacz tą opcję aby uruchomić wsparcie dla starszych wersji"
     191
     192#: includes/section.php:366 includes/settings.php:64
    194193#, php-format
    195194msgid "Include tags in %s section"
     
    204203msgstr "Ustawienia"
    205204
     205#~ msgid "Piwik PRO Tag Manager version >= 1.16.0"
     206#~ msgstr "Piwik PRO Tag Manager version >= 1.16.0"
     207
     208#~ msgid "Piwik PRO Tag Manager 1.16.0"
     209#~ msgstr "Piwik PRO Tag Manager 1.16.0"
     210
     211#~ msgid "Learn more about %s on the Piwik PRO Tag Manager documentation page."
     212#~ msgstr ""
     213#~ "Dowiedz się więcej o %s na stronie dokumentacji Piwik PRO Tag Manager."
     214
     215#~ msgid "Getting started"
     216#~ msgstr "Jak zacząć"
     217
     218#~ msgid "Containers"
     219#~ msgstr "Kontenerach"
     220
     221#~ msgid "Container UUID"
     222#~ msgstr "UUID Kontenera"
     223
    206224#~ msgid "Container ID"
    207225#~ msgstr "ID Kontenera"
  • piwik-pro-tag-manager-integration/trunk/plugin.php

    r1605209 r1682630  
    55    Plugin URI: https://wordpress.org/plugins/piwik-pro-tag-manager-integration
    66    Description: The plugin integrates WordPress site with Piwik PRO Tag Manager, allowing to add/modify website’s tags without the need to involve IT department.
    7     Version: 2.0.0
     7    Version: 2.1.0
    88    Author: piwikpro
    99    Author URI: https://piwik.pro
  • piwik-pro-tag-manager-integration/trunk/templates/body.php

    r1605209 r1682630  
    1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $url ) && ! empty( $container ) && ! empty( $script ) && ! empty( $noscript ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?>
     1<?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $url ) && ! empty( $container ) && ! empty( $script ) && ! empty( $noscript ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||window.document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?365:-1);window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,isStgDebug&&(tags.src=tags.src+"?stg_debug"),scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
  • piwik-pro-tag-manager-integration/trunk/templates/head.php

    r1605209 r1682630  
    1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $script ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script src="<?= $script; ?>"></script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?>
     1<?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $script ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||window.document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?365:-1);var url = "<?= $script; ?>" + (isStgDebug ? "?stg_debug" : "");document.write('<script src="' + url + '"></' + 'script>');</script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script src="<?= $script; ?>"></script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.