Added reCAPTCHA && Google Analytics support #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With these patches I added reCAPTCHA and Google Analytics support to phpsqlitecms.
You can edit the reCAPTCHA settings under 'Spam protection' section in the administration panel, for Google Analytics I added a section under the administration menu.
After adding your site and your secret reCAPTCHA keys, you can select
where do you want to add the reCAPTCHA check, by now you can add it to:
In the same way you just have to add your Analytics Tracking ID, check the checkbox and you are right.
Google Analytics script will be loaded in every page with the 'default.tpl' template (so administration pages won't be tracked).
It also prevents to randomly add Google's script in the page if you haven't enabled the feature that needs them, so it should be good also for the ones who don't want Google in their way ;)
In the end I edited the scripts and stylesheet position, so the page can be readden 'above the fold' and gets loaded even if cdns are having problems.