Google Analytics on WordPress explained in less than 128 words

Step 1: I created a Google Analytics account on the site https://www.google.com/analytics/, the requested information is: the account name; account data sharing settings, site name; Site URL;sector;time zone reports.

You then get the code a tracking ID and a javascript code to integrate into your site to enable tracking.

Step 2: I logged in to the administration of my WordPress site and in the Appearance – Publisher menu. I edit the header.php file in the list on the right "Theme Files" you have to click on "Theme Header". I placed the javascript code by copying paste provided by Google Analytics just before "".

I clicked "Update the file," so the tracking is activated.

Google Analytics on WordPress explained in less than 128 words

Step 1: I created a Google Analytics account on the site https://www.google.com/analytics/, the requested information is: the account name; account data sharing settings, site name; Site URL;sector;time zone reports.

You then get the code a tracking ID and a javascript code to integrate into your site to enable tracking.

Step 2: I logged in to the administration of my WordPress site and in the Appearance – Publisher menu. I edit the header.php file in the list on the right "Theme Files" you have to click on "Theme Header". I placed the javascript code by copying paste provided by Google Analytics just before "".

I clicked "Update the file," so the tracking is activated.

Change the Python version on an explained MAC in less than 128 words

Mac OS 10.8 comes with Python 2.7 pre-installed by Apple. After installing version 3 of python via https://www.python.org/downloads/ you find that the terminal python command has remained on version 2 and you want to change it In terminal:

python --version
Python 2.7.10

Python3 is no longer compatible with earlier versions. Programs calling 'python' probably wait for python2. If you already have programs and scripts that you don't even know they're waiting for python-python2, changing the python command could break the operation of these programs and scripts. You can then create a custom alias in your shell. The command depends on the shell, but you can try:


aka py - python3

To make the command persist with each start of the terminal you can edit the .bashrc file via the nano editor for example


Cd
nano .bashrc

The nano editor opens, you then add the line at the end of the file

...
aka py - python3

To get out of the editor the command is Ctrl x then Y and input to confirm the backup. The Terminal must then be closed and restarted to take this change into account in the next session.

To start a script or program recorded for example in monscript.py with python 3 you then have to type the command:

pymonscript.py