File tree Expand file tree Collapse file tree
simpleanalytics/templatetags Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030register = template .Library ()
3131
3232
33- _script_element = 'https://cdn.simpleanalytics.io/hello.js'
34- _img_element = 'https://api.simpleanalytics.io/hello.gif'
35-
33+ _script_element = 'https://script.simpleanalyticscdn.com/latest.js'
3634
3735register .simple_tag (
3836 func = lambda * args , ** kwargs : mark_safe (
5250 ),
5351 name = 'simpleanalytics_async' ,
5452)
55-
56-
57- # Installs the simpleanalytics noscript pixel wrapped in an noscript block
58- register .simple_tag (
59- func = lambda * args , ** kwargs : mark_safe (
60- '<noscript><img src="{img}" alt=""></noscript>' .format (
61- img = _img_element ,
62- ),
63- ),
64- name = 'simpleanalytics_noscript_block' ,
65- )
66-
67- # Installs the simpleanalytics noscript pixel in an image element
68- register .simple_tag (
69- func = lambda * args , ** kwargs : mark_safe (
70- '<img src="{img}" alt="">' .format (
71- img = _img_element ,
72- ),
73- ),
74- name = 'simpleanalytics_noscript_img' ,
75- )
You can’t perform that action at this time.
0 commit comments