Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
894b526e
Commit
894b526e
authored
13 years ago
by
Simon Leblanc
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue #11 : Google Analytics n'est plus obligatoire
parent
6e19094c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bandeaux.php
+9
-9
9 additions, 9 deletions
bandeaux.php
variables.php.template
+3
-0
3 additions, 0 deletions
variables.php.template
with
12 additions
and
9 deletions
bandeaux.php
+
9
−
9
View file @
894b526e
...
...
@@ -51,21 +51,21 @@ function framanav()
}
function
gAnalytics
()
{
echo
<<<gAnalytics
if
(
GOOGLE_ANALYTICS_ID
!==
false
)
{
echo
'
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount',
'UA-896440-11
']);
_gaq.push(['_trackPageview']);
_gaq.push([
\
'_setAccount
\
',
\''
.
GOOGLE_ANALYTICS_ID
.
'\
']);
_gaq.push([
\
'_trackPageview
\
']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
var ga = document.createElement(
\
'script
\
'); ga.type =
\
'text/javascript
\
'; ga.async = true;
ga.src = (
\
'https:
\
' == document.location.protocol ?
\
'https://ssl
\
' :
\
'http://www
\
') +
\
'.google-analytics.com/ga.js
\
';
var s = document.getElementsByTagName(
\
'script
\
')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
gAnalytics;
</script>
'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
variables.php.template
+
3
−
0
View file @
894b526e
...
...
@@ -78,6 +78,9 @@ define('LOGOLETTRE', '<chemin relatif suivi du nom du fichier du logo pour la le
// Activation des URL propre (true pour activer, false sinon)
define
(
'URL_PROPRE'
,
false
);
// Activation de Google Analytics (false si inactif, l'identifiant sinon)
define
(
'GOOGLE_ANALYTICS_ID'
,
false
);
if
(
@
file_exists
(
'variables.local.php'
))
{
include
(
'variables.local.php'
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment