3D FlipBook - Hi can we add an analytics tag to track pages viewed?

E***O@cecn.net
2019-08-08
2019-08-08

Hi

can we add an analytics tag to track pages viewed?

Replies

a***r@3dflipbook.net
2019-08-08
2019-08-08

Hi,

You can use JavaScript https://www.youtube.com/watch?v=ekpAGfmPI5k

E***O@cecn.net
2019-08-08
2019-08-08

So i can install the tag via java?

E***O@cecn.net
2019-08-08
2019-08-08

How do i update the plugin? do i uninstall the current plugin? Is the updated plugin the from the download option?

a***r@3dflipbook.net
2019-08-08
2019-08-08

Remove the old version. Download from codecanyon the new one and install.

E***O@cecn.net
2019-08-08
2019-08-08

Does it retain my files or do i need to re-upload?

a***r@3dflipbook.net
2019-08-08
2019-08-08

All your books are stored in the database, so do not worry about them.

E***O@cecn.net
2019-08-08
2021-02-04

Okay great – so for

 function ready(scene) {
  scene.ctrl.addEventListener('endFlip', function(e) { 
    console.log(scene.ctrl.getPageForGUI());
  });
} ready;

do i place this in the javascript or is that found elsewhere

a***r@3dflipbook.net
2019-08-18
2021-02-04

Use this function as ready function on general page of book editor

 function ready(scene) {
  scene.ctrl.addEventListener('endFlip', function(e) { 
    console.log(scene.ctrl.getPageForGUI());
  });
} ready;

Instead of console log call GA track function

a***r@3dflipbook.net
2020-09-02
2020-09-02

Since 1.10.9 you just need to have plugged in google analytics to your wordpress. Plugin call ga function:

ga('send', 'pageview', '/3d-flip-book/{book name}/{book id}/{page number}');
d***t@cogora.com
2020-10-02
2020-10-02

hi guys, I've tried your suggestion above but nothing is working, could you help please?

Where to paste the code and what exactly? When I pasted the function ready, I've added a simple console log to show a string, but nothing appear

a***r@3dflipbook.net
2020-10-05
2020-10-05

insert in Ready function:

 
function ready(scene) {
console.log('hi');
} ready;
d***t@cogora.com
2020-10-05
2021-02-04

tanks, this works, but not the endFlip event, it is generating an error. I've added the following code into Ready function:

function ready(scene) {
  scene.ctrl.addEventListener('endFlip', function(e) { 
    ga('send', 'pageview', '/3d-flip-book/{book name}/{book id}/{page number}');
    console.log('GA is working');
  });
} ready;
d***t@cogora.com
2021-01-13
2021-01-13

Sorry guys, I'm having still issue in catching data on GA I have the following code in the ready function:

function ready(scene) {
console.log('hi');
ga('send', 'pageview', '/3d-flip-book/{book name}/{book id}/{page number}');
} ready;

but I'm only getting the "hi" message in the console then lots of warning like pdf.worker.js:1 Warning: Unsupported header type 1885564018 (pclr) pdf.worker.js:1 Warning: Unsupported header type 1668112752 (cmap)

could you help, please?

I***a@altron.com
2022-05-25
2022-05-25

Did you managed to resolve the about issue? I have the same issue.

Log In to leave a comment