optocoupling a triac: correct pins
Figure 1. Connecting the opto-isolator between A1 (bottom) and gate would have the same effect as the 330 &Omega; resistor - it would ensure that the triac remained off. Image source: Triac optocoupler circuit.

No damage will occur.