Tried to use the GoogleTag shape in ShowOrchard.Theme but I couldn’t because of the below exception.
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'OrchardCore.DisplayManagement.Shapes.Shape', but this ViewDataDictionary instance requires a model item of type 'Lombiq.BaseTheme.ViewModels.GoogleTagViewModel'.
Try initializing the GoogleTag shape using the shape taghelper or the Liquid filter. Eg.
{% shape "GoogleTag", GoogleTagPropertyId: "G-XX", CookieDomain: "auto" %}
Tried to use the GoogleTag shape in ShowOrchard.Theme but I couldn’t because of the below exception.
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'OrchardCore.DisplayManagement.Shapes.Shape', but this ViewDataDictionary instance requires a model item of type 'Lombiq.BaseTheme.ViewModels.GoogleTagViewModel'.
Try initializing the GoogleTag shape using the shape taghelper or the Liquid filter. Eg.
{% shape "GoogleTag", GoogleTagPropertyId: "G-XX", CookieDomain: "auto" %}
Jira issue