You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We specifically tell Segment to use that as the page title via analytics.page('visited_section_docs'...
I was playing around with it locally and analytics.page('{{ title }} - {{ docstitle }}', { already seems to give more information, but since this is only a local demo, I don't know if those are the correct tags. Can anyone confirm or suggest better title options?
Cheers, M
The text was updated successfully, but these errors were encountered:
msbt
linked a pull request
May 17, 2021
that will
close
this issue
@amotl @norosa there is a small problem with pages like https://crate.io/docs/crate/reference/en/4.5/sql/statements/create-table.html - the segment snippet on the rendered page looks like this: analytics.page('<code class="docutils literal notranslate"><span class="pre">CREATE</span> <span class="pre">TABLE</span></code> - CrateDB: Reference', {
the code to display this is the one above (analytics.page('{{ title }} - {{ docstitle }}', {), any idea how to sanitize this properly to remove the html tags?
We just realized that all docs pages are getting the title "visited_section_docs" in Analytics, because of this line here: https://github.com/crate/crate-docs-theme/blob/master/src/crate/theme/rtd/crate/layout.html#L191
We specifically tell Segment to use that as the page title via
analytics.page('visited_section_docs'...
I was playing around with it locally and
analytics.page('{{ title }} - {{ docstitle }}', {
already seems to give more information, but since this is only a local demo, I don't know if those are the correct tags. Can anyone confirm or suggest better title options?Cheers, M
The text was updated successfully, but these errors were encountered: