|
|
|
|
@ -396,23 +396,22 @@ |
|
|
|
|
{% include "templates/blocks/popup_course_buy.html" %} |
|
|
|
|
<script type="text/javascript" src="{% static 'course.js' %}"></script> |
|
|
|
|
<script> |
|
|
|
|
console.log('hello from course view!'); |
|
|
|
|
|
|
|
|
|
console.log('{{ course.id }}'); |
|
|
|
|
console.log('{{ course.title }}'); |
|
|
|
|
console.log('{{ course.author.get_full_name }}'); |
|
|
|
|
console.log('{{ course.category.title }}'); |
|
|
|
|
console.log('{{ course.price }}'); |
|
|
|
|
|
|
|
|
|
gtag('event', 'select_content', { |
|
|
|
|
"content_type": "product", |
|
|
|
|
gtag('event', 'view_item', { |
|
|
|
|
"items": [ |
|
|
|
|
{ |
|
|
|
|
"id": "{{ course.id }}", |
|
|
|
|
"name": "{{ course.title }}", |
|
|
|
|
"list_name": "Search Results", |
|
|
|
|
"brand": "Google", |
|
|
|
|
"category": "Apparel/T-Shirts", |
|
|
|
|
"variant": "Black", |
|
|
|
|
"list_position": 1, |
|
|
|
|
"quantity": 2, |
|
|
|
|
"price": "{{course.price}}" |
|
|
|
|
"brand": "Lil.School {{ course.author.get_full_name }}", |
|
|
|
|
"category": "{{ course.category.title }}", |
|
|
|
|
"price": "{{ course.price }}" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
|