Commit c670c9ec authored by Felipe Gomez's avatar Felipe Gomez Committed by Andrés Cuberos Lopera

Actualización Google Analytics

parent 55b06a42
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
# Site information
AUTHOR = 'FLUID'
SITENAME = 'A Pentesting Company | FLUID'
SITEURL = 'https://fluidattacks.com/web/en'
# Theme
THEME = 'theme/2014'
# Date and time configuration
TIMEZONE = 'America/Bogota'
DEFAULT_DATE_FORMAT = ('%Y-%m-%d')
DEFAULT_LANG = 'en'
OUTPUT_PATH = 'output/web/en'
# URLs format
PATH = 'content'
ARTICLE_PATHS = ['blog-en']
PAGE_PATHS = ['pages-en']
STATIC_PATHS = ['images', 'files', 'blog-en', 'pages-en']
ARTICLE_URL = 'blog/{slug}'
ARTICLE_SAVE_AS = 'blog-en/{slug}index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = 'pages-en/{slug}index.html'
TAGS_SAVE_AS = 'blog/tags/index.html'
TAGS_URL = 'blog/tags/'
TAG_SAVE_AS = 'blog/tags/{slug}/index.html'
TAG_URL = 'blog/tags/{slug}/'
AUTHORS_SAVE_AS = 'blog/authors/index.html'
AUTHORS_URL = 'blog/authors/'
AUTHOR_SAVE_AS = 'blog/authors/{slug}/index.html'
AUTHOR_URL = 'blog/authors/{slug}/'
CATEGORIES_SAVE_AS = 'blog/categories/index.html'
CATEGORIES_URL = 'blog/categories/'
CATEGORY_SAVE_AS = 'blog/categories/{slug}/index.html'
CATEGORY_URL = 'blog/categories/{slug}/'
USE_FOLDER_AS_CATEGORY = False
INDEX_SAVE_AS = 'blog/index.html'
LANDING_SAVE_AS = 'index.html'
ERROR_SAVE_AS = 'error/index.html'
# Plugins configuration
PLUGIN_PATHS = ['/app/pelican-plugins']
PLUGINS = [
'asciidoc_reader',
'assets',
'neighbors',
'share_post',
'related_posts',
'representative_image',
'tipue_search',
'sitemap',
'i18n_subsites',
'pelican-redirect',
'tag_cloud'
]
RELATED_POSTS_MAX = 3
DIRECT_TEMPLATES = (('index', 'tags', 'categories', 'archives', 'authors', 'search', 'landing', 'error'))
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.7,
'indexes': 0.8,
'pages': 0.9
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
DEFAULT_PAGINATION = 12
# Line that allows the localization of the site (traslation)
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
I18N_SUBSITES = {
'es': {
'SITENAME': 'Especialistas en Ethical Hacking | FLUID',
'SITEURL': 'https://fluidattacks.com/web/es',
'OUTPUT_PATH': 'output/web/es',
'THEME': 'theme/2014',
'ARTICLE_PATHS': ['blog-es'],
'PAGE_PATHS': ['pages-es', 'kb'],
'PAGE_SAVE_AS': 'pages-es/{slug}index.html',
'ARTICLE_SAVE_AS': 'blog-es/{slug}index.html',
'STATIC_PATHS': ['files', 'images', 'blog-es', 'kb', 'pages-es'],
'GOOGLE_ANALYTICS': 'UA-22974464-4',
'TAGS_SAVE_AS': 'blog/etiquetas/index.html',
'TAGS_URL': 'blog/etiquetas/',
'TAG_SAVE_AS': 'blog/etiquetas/{slug}/index.html',
'TAG_URL': 'blog/etiquetas/{slug}/',
'AUTHORS_SAVE_AS': 'blog/autores/index.html',
'AUTHORS_URL': 'blog/autores/',
'AUTHOR_SAVE_AS': 'blog/autores/{slug}/index.html',
'AUTHOR_URL': 'blog/autores/{slug}/',
'CATEGORIES_SAVE_AS': 'blog/categorias/index.html',
'CATEGORIES_URL': 'blog/categorias/',
'CATEGORY_SAVE_AS': 'blog/categorias/{slug}/index.html',
'CATEGORY_URL': 'blog/categorias/{slug}/',
'ASCIIDOC_OPTIONS': ['-f /etc/asciidoc/lang-es.conf'],
}
}
lang_siteurls = {
'en': 'https://fluidattacks.com/web/en',
'es': 'https://fluidattacks.com/web/es',
}
REDIRECT_SAVE_AS = PAGE_SAVE_AS
ASSET_BUNDLES = (
('bundle', [
'css/custom/general.scss',
'css/custom/global.scss',
'css/custom/custom.scss'
], {'filters': 'scss'}),
)
# Disqus
DISQUS_SITENAME = 'fluidsignal'
# Google Analytics
GOOGLE_ANALYTICS = 'UA-22974464-11'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
# Site information
AUTHOR = 'FLUID'
SITENAME = 'A Pentesting Company | FLUID'
SITEURL = 'https://fluidattacks.com/web/en'
# Theme
THEME = 'theme/2014'
# Date and time configuration
TIMEZONE = 'America/Bogota'
DEFAULT_DATE_FORMAT = ('%Y-%m-%d')
DEFAULT_LANG = 'en'
OUTPUT_PATH = 'output/web/en'
# URLs format
PATH = 'content'
ARTICLE_PATHS = ['blog-en']
PAGE_PATHS = ['pages-en']
STATIC_PATHS = ['images', 'files', 'blog-en', 'pages-en']
ARTICLE_URL = 'blog/{slug}'
ARTICLE_SAVE_AS = 'blog-en/{slug}index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = 'pages-en/{slug}index.html'
TAGS_SAVE_AS = 'blog/tags/index.html'
TAGS_URL = 'blog/tags/'
TAG_SAVE_AS = 'blog/tags/{slug}/index.html'
TAG_URL = 'blog/tags/{slug}/'
AUTHORS_SAVE_AS = 'blog/authors/index.html'
AUTHORS_URL = 'blog/authors/'
AUTHOR_SAVE_AS = 'blog/authors/{slug}/index.html'
AUTHOR_URL = 'blog/authors/{slug}/'
CATEGORIES_SAVE_AS = 'blog/categories/index.html'
CATEGORIES_URL = 'blog/categories/'
CATEGORY_SAVE_AS = 'blog/categories/{slug}/index.html'
CATEGORY_URL = 'blog/categories/{slug}/'
USE_FOLDER_AS_CATEGORY = False
INDEX_SAVE_AS = 'blog/index.html'
LANDING_SAVE_AS = 'index.html'
ERROR_SAVE_AS = 'error/index.html'
# Plugins configuration
PLUGIN_PATHS = ['/app/pelican-plugins']
PLUGINS = [
'asciidoc_reader',
'assets',
'neighbors',
'share_post',
'related_posts',
'representative_image',
'tipue_search',
'sitemap',
'i18n_subsites',
'pelican-redirect',
'tag_cloud'
]
RELATED_POSTS_MAX = 3
DIRECT_TEMPLATES = (('index', 'tags', 'categories', 'archives', 'authors', 'search', 'landing', 'error'))
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.7,
'indexes': 0.8,
'pages': 0.9
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
DEFAULT_PAGINATION = 12
# Line that allows the localization of the site (traslation)
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
I18N_SUBSITES = {
'es': {
'SITENAME': 'Especialistas en Ethical Hacking | FLUID',
'SITEURL': 'https://fluidattacks.com/web/es',
'OUTPUT_PATH': 'output/web/es',
'THEME': 'theme/2014',
'ARTICLE_PATHS': ['blog-es'],
'PAGE_PATHS': ['pages-es', 'kb'],
'PAGE_SAVE_AS': 'pages-es/{slug}index.html',
'ARTICLE_SAVE_AS': 'blog-es/{slug}index.html',
'STATIC_PATHS': ['files', 'images', 'blog-es', 'kb', 'pages-es'],
'GOOGLE_ANALYTICS': 'UA-22974464-4',
'TAGS_SAVE_AS': 'blog/etiquetas/index.html',
'TAGS_URL': 'blog/etiquetas/',
'TAG_SAVE_AS': 'blog/etiquetas/{slug}/index.html',
'TAG_URL': 'blog/etiquetas/{slug}/',
'AUTHORS_SAVE_AS': 'blog/autores/index.html',
'AUTHORS_URL': 'blog/autores/',
'AUTHOR_SAVE_AS': 'blog/autores/{slug}/index.html',
'AUTHOR_URL': 'blog/autores/{slug}/',
'CATEGORIES_SAVE_AS': 'blog/categorias/index.html',
'CATEGORIES_URL': 'blog/categorias/',
'CATEGORY_SAVE_AS': 'blog/categorias/{slug}/index.html',
'CATEGORY_URL': 'blog/categorias/{slug}/',
'ASCIIDOC_OPTIONS': ['-f /etc/asciidoc/lang-es.conf'],
}
}
lang_siteurls = {
'en': 'https://fluidattacks.com/web/en',
'es': 'https://fluidattacks.com/web/es',
}
REDIRECT_SAVE_AS = PAGE_SAVE_AS
ASSET_BUNDLES = (
('bundle', [
'css/custom/general.scss',
'css/custom/global.scss',
'css/custom/custom.scss'
], {'filters': 'scss'}),
)
# Disqus
DISQUS_SITENAME = 'fluidsignal'
# Google Analytics
GOOGLE_ANALYTICS = 'UA-22974464-4'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
......@@ -8,13 +8,16 @@
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<!-- Meta Description -->
{% block meta %}{% endblock meta %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TZ3ZXPL');</script>
<!-- End Google Tag Manager -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-22974464-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-22974464-4');
</script>
<!-- Google Analytics -->
<!-- AddThis Share Bar -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5a37e74c4b1448ce"></script>
<!-- End AddThis -->
......@@ -105,10 +108,6 @@
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TZ3ZXPL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- Mixpanel Event -->
<script>
mixPanelDashboard.trackPageView ("Page View", document.title, window.location.pathname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment