I
I
Igor Kat2017-03-29 00:19:19
Programming
Igor Kat, 2017-03-29 00:19:19

How to add Google Analytics output from Redux Framework?

Good evening,
I want to add Google analytics output from Redux Framework. To do this, added to config.php

array(
        'id' => 'custom_js',
        'type' => 'textarea',
        'title' => __('Add JS'),
        'desc' => __('Place your custom javascript'),
        'default' => ''
      ),

and a water field appeared in the admin panel, I insert the code from the analytics into it.
But here's what to add to php so that the code is displayed and Google analytics starts working?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-03-17
@orchanin

The answer is late, but still. You need to specify an argument for the textarea field.
It will turn out something like this:

array(
                'id'=>'map',
        'type' => 'textarea',
        'title' => __('Код карты'), 
        'subtitle' => __(''),
        'desc' => __('Описание',  'redux-framework-demo'),
        'validate' => 'js',
        'default' => ''
            ),

All argument options can be found in the Documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question