|
|
|
|
@ -397,14 +397,7 @@ |
|
|
|
|
<script type="text/javascript" src="{% static 'course.js' %}"></script> |
|
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
console.log('{{ course.id }}'); |
|
|
|
|
console.log('{{ course.title }}'); |
|
|
|
|
console.log('{{ course.author.get_full_name }}'); |
|
|
|
|
console.log('{{ course.category.title }}'); |
|
|
|
|
console.log('{{ course.price }}'); |
|
|
|
|
|
|
|
|
|
window.onload = function () { |
|
|
|
|
gtag('event', 'view_item', { |
|
|
|
|
let payload = { |
|
|
|
|
"items": [ |
|
|
|
|
{ |
|
|
|
|
"id": "{{ course.id }}", |
|
|
|
|
@ -415,7 +408,13 @@ |
|
|
|
|
"price": "{{ course.price }}" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
console.log(payload) |
|
|
|
|
|
|
|
|
|
window.onload = function () { |
|
|
|
|
console.log('{{ is_owner }}') |
|
|
|
|
console.log('{{ course.price }}') |
|
|
|
|
gtag('event', 'view_item', payload) |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
{% endblock foot %} |
|
|
|
|
|