Analytics Dashboard

To add a button in the book description that links to the book’s analytics, the following HTML code should be added to the bottom of the Short Description section in Book Info > About the Book. Be sure to replace ‘ANALYTICS LINK HERE‘ with the link to the analytics page for the book.

<p class="book-header__linkbutton"
<a class="call-to-action"
href="ANALYTICS LINK HERE">
Book Analytic Dashboard
</a>
</p>

<a class=”call-to-action” href=”https://ecampusontario.pressbooks.pub/workingatplay?koko-analytics-dashboard=1″>
Book Analytic Dashboard
</a>

 

Paste the HTML code at the bottom of the Short Description text box, in the About the Book section, in the Book Info page

Then, to style the button correctly, the following CSS should be added to the bottom of Your Web Styles in Custom Styles (if you don’t know how to do this, check out Apply Custom Styles).

}
//** Landing Page Styles **//
/* Book analytics button */
.book-header__description .call-to-action {
color: var(--header-color);
background-color: var(--header-bg);
text-decoration-line: none;
font-size: 1rem;
margin-top: 2rem;
display: table;
}

/* Book analytics button when hovered */
.book-header__description .call-to-action:hover {
background-color: var(--header-color);
color: var(--header-bg);
}

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Fanshawe OER Training Guide Copyright © 2024 by Fanshawe College is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book