Plugin Directory

Changeset 2837344


Ignore:
Timestamp:
12/21/2022 01:02:21 PM (3 years ago)
Author:
sweetanalytics
Message:

Update Sweet logo + support newer Wordpress versions

Location:
sweet-woocommerce
Files:
23 added
12 edited

Legend:

Unmodified
Added
Removed
  • sweet-woocommerce/trunk/assets/img/logo.svg

    r2190842 r2837344  
    1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="151" height="44" viewBox="0 0 151 44">
    2     <defs>
    3         <path id="a" d="M0 .15h5.323v5.322H0z"/>
    4     </defs>
    5     <g fill="none" fill-rule="evenodd">
    6         <g fill="#000">
    7             <path d="M62.127 11.505c2.645 0 4.779.663 6.402 1.988 1.624 1.325 2.467 3.14 2.532 5.446l-5.096.26c-.022-1.035-.365-1.854-1.032-2.457-.667-.603-1.57-.905-2.709-.905-1.118 0-1.994.263-2.628.792-.635.528-.952 1.233-.952 2.116 0 .863.333 1.493 1 1.891.666.4 1.903.814 3.71 1.245 2.773.711 4.831 1.574 6.175 2.586 1.344 1.013 2.016 2.52 2.016 4.525 0 2.436-.834 4.278-2.5 5.528s-3.789 1.874-6.37 1.874c-2.86 0-5.181-.678-6.966-2.036C53.925 33 53.022 31.093 53 28.637l5.064-.259c.042 1.1.494 1.988 1.354 2.667.86.678 1.946 1.018 3.257 1.018 2.537 0 3.806-.926 3.806-2.78 0-.862-.382-1.519-1.145-1.972-.763-.452-2.037-.905-3.821-1.358-1.29-.322-2.334-.63-3.129-.92-.795-.291-1.608-.7-2.435-1.229-.828-.527-1.435-1.196-1.822-2.004s-.581-1.772-.581-2.893c0-2.111.742-3.873 2.226-5.285 1.483-1.411 3.601-2.117 6.353-2.117M93.67 36.039H89.93l-3.354-8.857-3.355 8.857H79.48l-6.386-16.711h5.16l3.245 9.572 3.421-9.572h3.294l3.454 9.566 3.26-9.566h5.16l-6.417 16.71M109.28 22.689c-1.012 0-1.823.297-2.436.889-.612.593-.951 1.417-1.016 2.472h6.709c-.043-1.055-.339-1.879-.887-2.472-.548-.592-1.339-.889-2.37-.889zm7.998 6.497h-11.45c.043 1.056.371 1.886.984 2.489.613.604 1.446.905 2.5.905 1.677 0 2.698-.614 3.063-1.842l4.742.226c-.302 1.595-1.167 2.898-2.597 3.911s-3.123 1.52-5.08 1.52c-2.58 0-4.66-.787-6.24-2.36s-2.37-3.685-2.37-6.335c0-2.672.784-4.79 2.354-6.353 1.569-1.562 3.612-2.343 6.128-2.343 2.429 0 4.364.739 5.805 2.215 1.44 1.475 2.161 3.507 2.161 6.092v1.875zM128.566 22.689c-1.01 0-1.822.297-2.435.889-.613.593-.951 1.417-1.016 2.472h6.709c-.044-1.055-.34-1.879-.887-2.472-.549-.592-1.339-.889-2.371-.889zm7.998 6.497h-11.449c.042 1.056.37 1.886.984 2.489.612.604 1.445.905 2.5.905 1.676 0 2.698-.614 3.063-1.842l4.74.226c-.3 1.595-1.165 2.898-2.595 3.911-1.43 1.013-3.124 1.52-5.08 1.52-2.58 0-4.66-.787-6.24-2.36-1.581-1.573-2.371-3.685-2.371-6.335 0-2.672.784-4.79 2.354-6.353 1.57-1.562 3.613-2.343 6.128-2.343 2.43 0 4.365.739 5.806 2.215 1.44 1.475 2.16 3.507 2.16 6.092v1.875zM146.078 23.4l-.032 6.207c0 .862.237 1.497.71 1.907.473.409 1.075.614 1.806.614.365 0 .849-.054 1.451-.162v4.202c-.903.13-1.774.194-2.612.194-1.892 0-3.382-.469-4.467-1.406-1.086-.937-1.618-2.344-1.596-4.218l.032-7.338h-3.032v-4.072h3.064l.032-5.528h4.709l-.033 5.528h3.903V23.4h-3.935"/>
    8         </g>
    9         <path fill="#000" d="M34.811 11.577a2.662 2.662 0 1 1-3.764 3.763 2.662 2.662 0 0 1 3.764-3.763M21.481 28.363l-3.764 3.764-9.41-9.41 3.764-3.763z"/>
    10         <path fill="#000" d="M34.786 11.557l-3.764 3.764-7.659-7.66 3.764-3.763z"/>
    11         <path fill="#000" d="M8.307 3.898c-5.196 5.196-5.196 13.622 0 18.82A13.286 13.286 0 0 0 19.6 26.481l-7.528-7.529A7.985 7.985 0 0 1 23.363 7.661l7.528 7.529a13.286 13.286 0 0 0-3.764-11.292C21.93-1.3 13.504-1.3 8.307 3.898"/>
    12         <path fill="#000" d="M15.835 15.19l3.764-3.764 9.41 9.41-3.764 3.763zM.78 30.245l3.763-3.764 9.41 9.41-3.764 3.764z"/>
    13         <path fill="#000" d="M29.009 39.655c5.197-5.197 5.197-13.623 0-18.82a13.286 13.286 0 0 0-11.292-3.764l7.528 7.528a7.985 7.985 0 0 1-11.292 11.292l-7.528-7.528a13.286 13.286 0 0 0 3.764 11.292c5.197 5.197 13.623 5.197 18.82 0"/>
    14         <g transform="translate(0 25.553)">
    15             <mask id="b" fill="#000">
    16                 <use xlink:href="#a"/>
    17             </mask>
    18             <path fill="#000" d="M4.543.929A2.662 2.662 0 1 1 .78 4.692 2.662 2.662 0 0 1 4.543.93" mask="url(#b)"/>
    19         </g>
    20         <path fill="#000" d="M19.6 11.425a2.662 2.662 0 1 1-3.765 3.764 2.662 2.662 0 0 1 3.764-3.764M21.32 28.202a2.662 2.662 0 1 1-3.765 3.763 2.662 2.662 0 0 1 3.765-3.763"/>
    21     </g>
     1<?xml version="1.0" standalone="no"?>
     2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
     3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
     4<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
     5 width="1185.000000pt" height="509.000000pt" viewBox="0 0 1185.000000 509.000000"
     6 preserveAspectRatio="xMidYMid meet">
     7
     8<g transform="translate(0.000000,509.000000) scale(0.100000,-0.100000)"
     9fill="#000000" stroke="none">
     10<path d="M1085 4935 c-384 -59 -650 -278 -747 -612 -20 -68 -23 -100 -23 -248
     111 -157 3 -176 28 -251 62 -187 190 -310 442 -425 100 -45 152 -62 400 -130
     12443 -121 562 -178 621 -295 14 -30 19 -59 18 -124 0 -98 -14 -138 -70 -200
     13-68 -75 -157 -107 -324 -117 -193 -10 -344 36 -460 143 -69 65 -120 158 -128
     14234 l-5 50 -41 0 c-68 0 -468 -20 -514 -26 l-44 -5 7 -77 c18 -192 90 -361
     15206 -486 90 -97 169 -153 300 -215 394 -187 954 -169 1302 41 245 148 367 381
     16367 702 0 441 -249 650 -1006 847 -182 47 -326 96 -390 134 -145 85 -164 305
     17-38 444 82 92 186 125 370 119 117 -4 125 -5 197 -41 120 -59 188 -151 210
     18-284 8 -54 13 -63 31 -63 43 0 569 30 571 33 1 1 -2 38 -7 82 -42 390 -307
     19663 -733 756 -120 27 -411 34 -540 14z"/>
     20<path d="M10660 4355 l0 -325 -180 0 -180 0 0 -240 0 -240 175 0 175 0 0 -485
     21c0 -545 3 -581 67 -715 66 -137 198 -240 378 -292 73 -21 100 -23 300 -23 121
     220 232 4 248 8 l27 7 0 246 0 245 -47 -7 c-156 -26 -280 2 -348 77 -66 74 -68
     2385 -73 384 -2 149 -1 334 3 413 l7 142 229 0 229 0 0 240 0 240 -230 0 -230 0
     240 325 0 325 -275 0 -275 0 0 -325z"/>
     25<path d="M6726 4059 c-238 -27 -433 -123 -592 -292 -173 -184 -254 -412 -254
     26-720 0 -150 12 -240 47 -357 66 -222 210 -410 407 -529 273 -164 704 -184
     271002 -47 152 71 297 195 368 316 37 63 95 214 85 224 -2 3 -106 10 -229 16
     28-124 5 -246 12 -273 14 -47 3 -47 3 -66 -39 -22 -51 -79 -108 -135 -135 -112
     29-54 -302 -53 -416 2 -94 46 -176 157 -194 263 -4 22 -9 52 -12 68 l-6 27 676
     300 676 0 0 168 c0 97 -6 209 -15 266 -48 316 -217 551 -487 675 -171 79 -365
     31106 -582 80z m291 -444 c73 -22 142 -80 181 -152 28 -54 39 -90 56 -190 l6
     32-33 -400 0 c-220 0 -400 2 -400 4 0 28 35 156 51 187 27 55 93 125 145 155 90
     3353 241 65 361 29z"/>
     34<path d="M8947 4055 c-213 -35 -364 -112 -517 -265 -190 -190 -262 -367 -276
     35-680 -21 -442 138 -764 473 -958 148 -87 324 -127 543 -125 297 2 509 83 696
     36268 75 74 98 105 132 175 41 84 71 174 61 184 -3 3 -104 10 -225 16 -120 6
     37-242 12 -270 13 -52 3 -52 3 -72 -38 -49 -101 -123 -148 -266 -167 -163 -22
     38-294 18 -385 117 -55 61 -87 134 -97 220 l-7 55 673 0 672 0 -5 223 c-4 180
     39-8 237 -25 302 -45 176 -123 314 -239 426 -120 116 -251 186 -423 224 -103 23
     40-331 28 -443 10z m345 -445 c114 -35 182 -115 218 -257 33 -127 79 -113 -375
     41-113 l-395 0 0 23 c0 36 28 133 51 178 41 82 137 157 226 178 71 17 206 12
     42275 -9z"/>
     43<path d="M2624 3993 c8 -21 168 -441 356 -933 188 -492 351 -919 362 -947 l19
     44-53 219 0 c198 0 218 2 225 18 3 9 90 238 192 507 102 270 189 497 193 505 7
     4512 10 10 18 -10 5 -14 94 -249 197 -523 l188 -497 219 2 220 3 374 975 c206
     46536 374 978 374 983 0 4 -135 7 -299 7 -274 0 -299 -1 -305 -17 -4 -10 -88
     47-256 -188 -548 -99 -291 -184 -536 -188 -543 -4 -9 -29 49 -64 145 -31 87
     48-123 339 -203 561 l-145 402 -193 0 c-145 0 -194 -3 -198 -12 -2 -7 -91 -256
     49-197 -553 -106 -297 -196 -543 -199 -548 -4 -4 -92 245 -197 553 l-189 560
     50-302 0 -302 0 13 -37z"/>
     51<path d="M5670 970 l0 -500 70 0 70 0 0 500 0 500 -70 0 -70 0 0 -500z"/>
     52<path d="M7248 1435 c-38 -21 -54 -75 -33 -115 20 -39 53 -54 99 -46 43 8 66
     5338 66 87 0 29 -7 43 -31 63 -34 29 -61 32 -101 11z"/>
     54<path d="M3494 1393 c-9 -21 -97 -229 -196 -463 -99 -234 -183 -433 -185 -443
     55-5 -16 2 -18 77 -15 l82 3 42 100 42 100 219 0 220 0 41 -100 41 -100 81 -3
     56c45 -2 82 1 82 5 0 4 -90 220 -199 478 l-199 470 -66 3 -67 3 -15 -38z m160
     57-380 c36 -89 69 -169 72 -178 5 -13 -13 -15 -151 -15 -86 0 -155 4 -153 9 50
     58130 153 360 158 354 4 -4 37 -81 74 -170z"/>
     59<path d="M6770 1240 l0 -109 -62 -3 -63 -3 0 -60 0 -60 63 -3 62 -3 0 -200 c0
     60-176 2 -204 19 -237 38 -75 94 -102 211 -102 l80 0 0 65 0 65 -56 0 c-48 0
     61-59 4 -85 29 l-29 29 0 176 0 176 85 0 85 0 0 65 0 65 -85 0 -85 0 0 110 0
     62110 -70 0 -70 0 0 -110z"/>
     63<path d="M4416 1126 c-21 -8 -54 -29 -72 -47 l-34 -33 0 42 0 42 -70 0 -70 0
     640 -330 0 -330 69 0 69 0 4 213 c4 245 9 264 88 305 73 37 149 17 190 -51 18
     65-29 20 -52 20 -249 l0 -218 75 0 75 0 0 210 c0 115 -5 232 -11 260 -15 71 -64
     66139 -121 168 -59 30 -157 38 -212 18z"/>
     67<path d="M5106 1124 c-66 -21 -138 -93 -155 -157 -8 -26 -12 -49 -10 -51 2 -2
     6834 -7 70 -11 l67 -7 12 36 c17 52 52 76 112 76 27 0 58 -5 70 -11 25 -13 48
     69-67 48 -112 l0 -34 -112 -6 c-64 -3 -134 -13 -160 -22 -113 -39 -161 -179 -98
     70-283 57 -93 226 -117 333 -46 l37 24 0 -25 c0 -24 2 -25 75 -25 l75 0 0 209
     71c0 114 -5 233 -10 262 -15 76 -55 137 -112 166 -61 32 -172 40 -242 17z m214
     72-419 c0 -81 -55 -128 -150 -129 -73 -1 -100 19 -100 74 0 63 49 87 183 89 l67
     731 0 -35z"/>
     74<path d="M7777 1130 c-153 -39 -239 -159 -238 -335 0 -150 63 -256 183 -310
     7552 -24 77 -29 144 -29 72 0 89 4 147 32 74 37 119 86 144 157 8 25 14 47 12
     7649 -2 2 -33 6 -69 10 l-65 6 -20 -42 c-28 -58 -63 -81 -133 -86 -77 -6 -131
     7721 -167 81 -54 94 -40 244 30 306 90 79 223 56 270 -48 l20 -43 65 6 c35 4 66
     789 68 11 2 2 -3 26 -12 53 -37 110 -137 180 -268 187 -40 2 -90 0 -111 -5z"/>
     79<path d="M8432 1121 c-63 -22 -98 -52 -123 -106 -25 -54 -24 -102 4 -155 27
     80-54 69 -77 212 -114 112 -30 135 -45 135 -91 0 -51 -30 -70 -110 -70 -73 0
     81-103 16 -121 63 -8 20 -15 22 -74 22 -82 0 -88 -11 -49 -88 51 -99 171 -147
     82306 -123 118 21 182 83 194 187 12 107 -58 171 -236 215 -110 27 -130 40 -130
     8383 0 58 62 87 140 66 35 -9 45 -18 59 -50 l16 -40 70 7 c39 3 71 6 71 7 1 0
     84-5 23 -13 49 -37 127 -199 191 -351 138z"/>
     85<path d="M5940 1125 c0 -3 57 -140 127 -303 69 -163 126 -304 125 -312 0 -8
     86-35 -93 -76 -188 -42 -96 -76 -176 -76 -178 0 -2 35 -4 78 -4 l77 0 202 478
     87c111 262 205 485 208 495 6 15 -1 17 -72 17 l-79 0 -79 -202 c-43 -112 -84
     88-214 -90 -227 -11 -22 -20 -4 -101 203 l-89 226 -77 0 c-43 0 -78 -2 -78 -5z"/>
     89<path d="M7220 800 l0 -330 75 0 75 0 -2 328 -3 327 -72 3 -73 3 0 -331z"/>
     90</g>
    2291</svg>
  • sweet-woocommerce/trunk/readme.txt

    r2413452 r2837344  
    33Tags: sweet, analytics, tracker, tracking code, insights, analytics, enhanced, ecommerce, bi
    44Requires at least: 2.2
    5 Tested up to: 5.5.3
    6 Stable tag: 0.0.3
     5Tested up to: 6.1.1
     6Stable tag: 0.0.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 0.0.4 =
     75* Logo updates + support latest Wordpress versions
     76
    7477= 0.0.3 =
    7578* Tested with latest Worpdress version
  • sweet-woocommerce/trunk/sweet-tracker-functions.php

    r2190842 r2837344  
    1717    if ($trackerEnabled) {
    1818        $script = '<script>';
    19         $script .= 'window.adType = window.adType || {}, window.adType.q = adType.q || [], window.adType.init = function(e) {
     19        $script .= 'window.sweet = window.sweet || {}, window.sweet.q = sweet.q || [], window.sweet.init = function(e) {
    2020                  this.cid = e;
    21               }, window.adType.track = function() {
     21              }, window.sweet.track = function() {
    2222                  this.q.push(arguments)
    2323              };
     
    2626              a.async = 1, a.src = "https://track.sweetanalytics.com/sweet.min.js", m.parentNode.insertBefore(a, m);
    2727
    28               adType.init("' . $trackerID . '");
    29               adType.track("pageview", 1);';
     28              sweet.init("' . $trackerID . '");
     29              sweet.track("pageview", 1);';
    3030
    3131        if (is_singular('product') and $basketTracking) {
     
    4444            $script .= '
    4545                        document.body.addEventListener("added_to_cart", function(e) {
    46                           adType.track("addToBasket", {
     46                          sweet.track("addToBasket", {
    4747                            item_id: "' . $sku . '",
    4848                            item_name: "' . $name . '",
     
    6060                          product_id = sku;
    6161                        }
    62                         adType.track("removeFromBasket", {
     62                        sweet.track("removeFromBasket", {
    6363                          id: product_id
    6464                        });
     
    111111    ?>
    112112      <script>
    113         adType.track("addTransaction", {
     113        sweet.track("addTransaction", {
    114114                transaction_id: "<?php echo $order_id ?>",
    115115                affiliation: "",
     
    144144            <script>
    145145
    146             adType.track("addItem", {
     146            sweet.track("addItem", {
    147147              transaction_id: "<?php echo $order_id; ?>",
    148148              id: "<?php echo $product->get_sku(); ?>",
     
    163163        ?>
    164164              <script>
    165             adType.track("transaction");
     165            sweet.track("transaction");
    166166            </script>
    167167      <?php
  • sweet-woocommerce/trunk/sweet-woocommerce.php

    r2413452 r2837344  
    33 * Plugin Name: Sweet Analytics WooCommerce
    44 * Description: WooCommerce tracking integration with Sweet Analytics
    5  * Version: 0.0.3
     5 * Version: 0.0.4
    66 * Author: Sweet Analytics
    77 * Author URI: https://sweetanalytics.com
    88 * WC requires at least: 2.2
    9  * WC tested up to: 5.5.3
     9 * WC tested up to: 6.1.1
    1010 */
    1111namespace SweetAnalytics;
Note: See TracChangeset for help on using the changeset viewer.